Retrieves the DNS zone belonging to the domain from Google's Cloud DNS.
Important: This call requires an account level API key and cannot be authenticated with the standard authorization header.
Domain to retrieve the DNS zone for.
Retrieved DNS zone.
curl -X GET
'https://www.wixapis.com/domains/v1/dns-zones/primarydemo.xyz' \
-H 'wix-account-id: <ACCOUNT_ID>' \
-H 'Authorization: <AUTH>' \
{
"dnsZone": {
"domainName": "primarydemo.xyz.",
"records": [
{
"type": "A",
"hostName": "primarydemo.xyz",
"ttl": 3600,
"values": ["185.230.63.171", "185.230.63.186", "185.230.63.107"]
},
{
"type": "NS",
"hostName": "primarydemo.xyz",
"ttl": 86400,
"values": ["ns8.wixdns.net", "ns9.wixdns.net"]
},
{
"type": "SOA",
"hostName": "primarydemo.xyz",
"ttl": 3600,
"values": [
"ns8.wixdns.net. support.wix.com. 2023112220 10800 3600 604800 3600"
]
},
{
"type": "CNAME",
"hostName": "www.primarydemo.xyz",
"ttl": 3600,
"values": ["cdn1.wixdns.net"]
}
],
"id": "primarydemo.xyz.",
"dnssecEnabled": true,
"dnssecInfo": {
"keyTag": 8494,
"digest": "14AECDC8B7E9FDB42AF08A8A55B1E8A9DEA5FC348B1F517026E40B8ACA5F1830"
}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.