Creating a secondary zone using the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
Secondary/ POST — Create a secondary zone.
HTTP Action — POST
URI — https://api.dynect.net/REST/Secondary/<zone>/
|
Arguments:
string contact_nickname — Contact that receives notifications for this zone
array masters — Required. A list of IPv4 or IPv6 address(es) of the master nameserver(s) for this zone.
string tsig_key_name — Name of the TSIG key that will be used to sign transfer requests to your zone’s master.
|
Response — Click for More Info
- integer
task_id – The number assigned to the task to create a secondary zone.
- string
active — State of the secondary service.
Valid values:
Y = service is active.
N = service is inactive
- string
contact_nickname — Contact that receives notifications for this zone.
- array
masters — A list of IPv4 or IPv6 address(es) of the master nameserver(s) for this zone.
- string
tsig_key_name — Name of the TSIG key that will be used to sign transfer requests to your zone’s master.
- string
zone — Name of the zone.
|
SOAP Syntax
Click to view all SOAP Commands |
CreateSecondaryZone — Create a secondary zone.
|
Arguments — Click for More Info
- string
contact_nickname — Contact to receive notifications for this zone.
- array
masters — Required. A list of the IPv4 or IPv6 address(es) of the master nameservers for this zone.
- string
tsig_key_name — Name of the TSIG key that will be used to sign transfer requests to your zone’s master.
- string
token — Required. The session identifier.
- string
zone — Required. Name of secondary zone to create.
|
Response — Click for More Info
- hash
data
- string
active — State of the secondary service.
Valid values:
Y = service is active.
N = service is inactive.
- string
contact_nickname — Contact that receives notifications for this zone.
- array
masters — A list of IPv4 or IPv6 address(es) of the master nameserver(s) for this zone.
- string
tsig_key_name — Name of the TSIG key that will be used to sign transfer requests to your zone’s master.
- string
zone — Name of the zone.
|
Example Request — Click for More Info
{
'contact_nickname' => 'owner',
'masters' => [ '192.0.2.5' ],
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
<< DNS API Knowledge Base