dns_a_record_set

Use this data source to get DNS A records of the host.

Example Usage

data "dns_a_record_set" "google" {
  host = "google.com"
}

output "google_addrs" {
  value = "${join(",", data.dns_a_record_set.google.addrs)}"
}

Argument Reference

The following arguments are supported:

  • host - (required): Host to look up

Attributes Reference

The following attributes are exported:

  • id - Set to host.

  • addrs - A list of IP addresses. IP addresses are always sorted to avoid constant changing plans.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/dns/d/dns_a_record_set.html