dns_ptr_record_set

Use this data source to get DNS PTR record set of the ip address.

Example Usage

data "dns_ptr_record_set" "hashicorp" {
  ip_address = "8.8.8.8"
}

output "hashi_ptr" {
  value = "${data.dns_ptr_record_set.hashicorp.ptr}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

  • id - Set to ip_address.

  • ptr - A PTR record associated with ip_address.

NOTE: Only the first result is taken from the query.

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