GET

Preview Dns Zone


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.

Endpoint
GET
https://www.wixapis.com/domains/v1/dns-zones/{domainName}/preview

Path Params
domainNamestringRequired

Domain name to generate a DNS zone preview for.

Response Object
dnsZoneDnsZone

DNS zone preview.

Includes calculated A, CNAME, NS and SOA records.

Preview a DNS zone.
Request
cURL
curl -X GET 'https://www.wixapis.com/domains/v1/dns-zones/mysite.com/preview' \ -H 'wix-account-id: <ACCOUNT_ID>' \ -H 'Authorization: <AUTH>' \
Response
JSON
{ "dnsZone": { "records": [ { "values": ["10 aspmx.l.google.com"], "ttl": 3600, "hostName": "mysite.com", "type": "MX" } ], "domainName": "mysite.com" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?