Use this data source to get DNS AAAA records of the host.
data "dns_aaaa_record_set" "google" {
host = "google.com"
}
output "google_addrs" {
value = "${join(",", data.dns_aaaa_record_set.google.addrs)}"
}
The following arguments are supported:
host - (required): Host to look up 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 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/dns/d/dns_aaaa_record_set.html