DNS Zones API

get zonefile

GET /api/rest/dns/zones/:id/zonefile

Parameters

Name Description
id DNS zone ID

Request

Headers

Accept: text/dns
Content-Type: text/dns
Host: example.org
Cookie: 

Route

GET /api/rest/dns/zones/3/zonefile

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: text/dns; charset=utf-8
vary: Accept
etag: W/"e7ead2ebe9f60d4add08bc7297b077f7"
cache-control: max-age=0, private, must-revalidate
x-request-id: 694243fa-5077-441d-9e67-3ec97415da84
x-runtime: 0.009065
content-length: 215

Status

200 OK

Body

$ORIGIN .
$TTL 3600
; SOA Record
example.com IN SOA ns1.example.com admin.example.com (
  1 ; serial
  600 ; refresh
  600 ; retry
  1800 ; expire
  3600 ; minimum
)

$ORIGIN example.com.

; A Record
@ A 192.0.2.1