Get a master zone file

GET https://{{host}}/config-dns/v2/zones/:zone/zone-file

Download this zone's record set data in master zone file format. Use the recipe below to get the master zone file. This operation applies to primary zones and secondary zones. See RFC 1035 section 5 and RFC 1034 section 3.6.1 for more information. AKAMAICDN and AKAMAITLC records can't be represented in this format, so they're displayed as comment lines.

Request Params

KeyDatatypeRequiredDescription
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

"example.com.        10000    IN SOA ns1.akamaidns.com. webmaster.example.com. 1 28800 14400 2419200 86400 example.com.        10000    IN NS  ns1.akamaidns.com. example.com.        10000    IN NS  ns2.akamaidns.com. example.com.            300 IN  A   10.0.0.1 example.com.            300 IN  A   10.0.0.2 www.example.com.        300 IN  A   10.0.0.1 www.example.com.        300 IN  A   10.0.0.2"