MENU
ゾーンファイルエクスポート - DNS API v1.0
Description
ゾーンからゾーンファイルをエクスポートする
※コンテントタイプ:text/dns
※SOA、NSレコードはDesignateサーバに置換される
Request URL
Designate API v2.0 GET /v2/zones/(uuid: id)
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | string | Userトークン |
Request Json
Response File
$ORIGIN example.com. $TTL 42 example.com. IN SOA ns.designate.com. nsadmin.example.com. ( 1394213803 ; serial 3600 ; refresh 600 ; retry 86400 ; expire 3600 ; minimum ) example.com. IN NS ns.designate.com. example.com. IN MX 10 mail.example.com. ns.example.com. IN A 10.0.0.1 mail.example.com. IN A 10.0.0.2
Normal response codes
200 - OK
Error response codes
406 – Not Acceptable
Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。
- REQ
curl --include https://dns-service.tyo1.conoha.io/v2/zones/6b78734a-aef1-45cd-9708-8eb3c2d26ff1 \ -X GET \ -H "Accept: text/dns" \ -H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140"
- RES
HTTP/1.1 200 OK Content-Type: text/dns $ORIGIN example.com. $TTL 42 example.com. IN SOA ns.designate.com. nsadmin.example.com. ( 1394213803 ; serial 3600 ; refresh 600 ; retry 86400 ; expire 3600 ; minimum ) example.com. IN NS ns.designate.com. example.com. IN MX 10 mail.example.com. ns.example.com. IN A 10.0.0.1 mail.example.com. IN A 10.0.0.2