Generates a preview for a DNS zone based on Google's Cloud DNS.
This includes calculating the A
, CNAME
, NS
and SOA
records.
You can use this information to configure a domain from an external
provider, before connecting it to a Wix site.
Important: This call requires an account level API key and cannot be authenticated with the standard authorization header.
Domain name to generate a DNS zone preview for.
DNS zone preview.
Includes calculated A
, CNAME
, NS
and SOA
records.
curl -X GET
'https://www.wixapis.com/domains/v1/dns-zones/mysite.com/preview' \
-H 'wix-account-id: <ACCOUNT_ID>' \
-H 'Authorization: <AUTH>' \
{
"dnsZone": {
"records": [
{
"values": ["10 aspmx.l.google.com"],
"ttl": 3600,
"hostName": "mysite.com",
"type": "MX"
}
],
"domainName": "mysite.com"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.