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/"8a1d25adc642e30265cf7143799126f2"
cache-control: max-age=0, private, must-revalidate
x-request-id: a3c321e2-c4d9-4cb5-9a3d-1445823e9571
x-runtime: 0.013152
content-length: 216

Status

200 OK

Body

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

$ORIGIN example.com.

; A Record
@ A 192.0.2.1