Use this data source to get DNS A records of the host.
data "dns_a_record_set" "google" {
host = "google.com"
}
output "google_addrs" {
value = join(",", data.dns_a_record_set.google.addrs)
}
host
(String) Host to look up.addrs
(List of String) A list of IP addresses. IP addresses are always sorted to avoid constant changing plans.id
(String) Always set to the host.