Use this data source to get DNS NS records of the host.
data "dns_ns_record_set" "google" {
host = "google.com"
}
output "google_nameservers" {
value = join(",", data.dns_ns_record_set.google.nameservers)
}
host
(String) Host to look up.id
(String) Always set to the domain.nameservers
(List of String) A list of nameservers. Nameservers are always sorted to avoid constant changing plans.