GuideReference
TrainingSupportCommunity

DNS record set

akamai_dns_record_set

Get a list of record sets for a given zone.

data "akamai_dns_record_set" "my_dns_record_set" {
  zone        = "my_zone.com"
  host        = "my_host.com"
  record_type = "A"
} 

output "my_dns_record_set" {
  value = join(",", data.akamai_dns_record_set.my_dns_record_set.rdata)
}
Changes to Outputs:
  + my_dns_record_set = "a1-12.akam.net.,a2-23.akam.net.,a3-34.akam.net.,a4-45.akam.net.,a5-56.akam.net.,a6-67.akam.net."

Arguments

All arguments are required in the declaration to get information about the record sets.

ArgumentRequiredDescription
zone‚úĒÔłŹThe domain zone, including any nested subdomains.
host‚úĒÔłŹThe base credential hostname without the protocol.
record_type‚úĒÔłŹThe DNS record type.

Attributes

Returned to you is a computed list of multiple records within a set for your query's domain zone, hostname, and record type.