dns_cname_record_set

Use this data source to get DNS CNAME record set of the host.

Example Usage

data "dns_cname_record_set" "hashicorp" {
  host = "www.hashicorp.com"
}

output "hashi_cname" {
  value = "${data.dns_cname_record_set.hashi.cname}"
}

Argument Reference

The following arguments are supported:

  • host - (required): Host to look up

Attributes Reference

The following attributes are exported:

  • id - Set to host.

  • cname - A CNAME record associated with host.

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