Understanding How The API Works »
Deleting an external nameserver in the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.
REST Syntax
Click to view all REST Resources |
/REST/ExtNameserver/ DELETE — Removes an external nameserver service from the zone indicated.
HTTP Action — DELETE
URI — https://api.dynect.net/REST/ExtNameserver/<zone>/ |
Arguments — Click for More Info
- string
deny — Sets request as blocked or added.
Valid values:
Y – Block the request.
N – Add the request.
- string
active — Sets request to use listed hosts or account defaults.
Valid values:
Y – Use this set of hosts.
N – Use account defaults.
- array
hosts — Required. A list of external nameservers.
- string
address — Required. Address or CIDR of the external nameserver.
- string
notifies — Set whether or not the host receives notifications.
Valid values:
Y – Yes.
N – No.
- string
transfer — Enable the host (or block) to perform XFR transfers from Dyn’s server.
Valid values:
Y – Yes.
N – No.
- string
tsig_key_name — The TSIG key name for the TSIG key you want to use. See https://help.dyn.com/get-tsigkey-info-api/ for the available names of TSIG keys on your account.
|
Response — Click for More Info
- string
zone — Name of the zone where the service exists.
- string
deny — Sets request as blocked or added.
Valid values:
Y – Block the request.
N – Add the request.
- string
active — Sets request to use listed hosts or account defaults.
Valid values:
Y – Use this set of hosts.
N – Use account defaults.
- array
hosts — A list of external nameservers.
- string
address — Address or CIDR of the external nameserver.
- string
notifies — Whether or not the host receives notifications.
Valid values:
Y – Yes.
N – No.
- string
transfer — Enable the host (or block) to perform XFR transfers from Dyn’s server.
Valid values:
Y – Yes.
N – No.
- string
tsig_key_name — The TSIG key name for the TSIG key you want to use. See https://help.dyn.com/get-tsigkey-info-api/ for the available names of TSIG keys on your account.
|
SOAP Syntax
Click to view all SOAP Commands |
DeleteOneExtNameserver — Deletes an external nameserver service on the zone indicated. |
Arguments — Click for More Info
- string
deny — Sets request as blocked or added.
Valid values:
Y – Block the request.
N – Add the request.
- string
active — Sets request to use listed hosts or account defaults.
Valid values:
Y – Use this set of hosts.
N – Use account defaults.
- array
hosts — Required. A list of external nameservers.
- string
address — Required. Address or CIDR of the external nameserver.
- string
notifies — Set whether or not the host receives notifications.
Valid values:
Y – Yes.
N – No.
- string
transfer — Enable the host (or block) to perform XFR transfers from Dyn’s server.
Valid values:
Y – Yes.
N – No.
- string
tsig_key_name — The TSIG key name for the TSIG key you want to use. See https://help.dyn.com/get-tsigkey-info-api/ for the available names of TSIG keys on your account.
- string
token — Required. The session identifier.
- string
zone — Required. Name of the zone where the service will exist.
|
Response — Click for More Info
- hash
data
- string
zone — Name of the zone where the service exists.
- string
deny — Sets request as blocked or added.
Valid values:
Y – Block the request.
N – Add the request.
- string
active — Sets request to use listed hosts or account defaults.
Valid values:
Y – Use this set of hosts.
N – Use account defaults.
- array
hosts — A list of external nameservers.
- string
address — Address or CIDR of the external nameserver.
- string
notifies — Whether or not the host receives notifications.
Valid values:
Y – Yes.
N – No.
- string
transfer — Enable the host (or block) to perform XFR transfers from Dyn’s server.
Valid values:
Y – Yes.
N – No.
- string
tsig_key_name — The TSIG key name for the TSIG key you want to use. See https://help.dyn.com/get-tsigkey-info-api/ for the available names of TSIG keys on your account.
|
Example Request — Click for More Info
{
'deny' => 'N',
'active' => 'Y',
'hosts' => [{
'address' => '142.35.78.17',
'notifies' => 'Y',
}, {
'address' => '142.35.78.18',
'notifies' => 'Y',
}],
'tsig_key_name' => 'key4some',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
<< DNS API Knowledge Base