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

Example Usage

data "dns_ptr_record_set" "hashicorp" {
  ip_address = ""

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 HashiCorpLicensed under the MPL 2.0 License.