Use this data source to get DNS PTR record set of the ip address.
data "dns_ptr_record_set" "hashicorp" {
ip_address = "8.8.8.8"
}
output "hashi_ptr" {
value = data.dns_ptr_record_set.hashicorp.ptr
}
ip_address
(String) IP address to look up.id
(String) Always set to the IP address.ptr
(String) A PTR record associated with ip_address
.