Understanding How The API Works »
Creating a new Dynamic DNS service instance and add it to an existing record 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/DDNS/ POST — Creates a new Dynamic DNS service on the zone/node indicated and adds the service to the record indicated.
HTTP Action — POST
URIs — https://api.dynect.net/REST/DDNS/<zone>/<fqdn>/<record_id>/
NOTE: If the add_on flag is specified, the last argument is treated as the ID of an existing record and the new DDNS service will be added and assigned to that record. |
Arguments:boolean add_on — Required. |
Response:
- string
abuse_count — Total number of abusive updates since last good update.
- string
active — A boolean indicating whether or not the service is active.
Y – The service is active.
N – The service is inactive.
- string
last_updated — Timestamp of the last good update by an update client.
- string
address — IPv4 or IPv6 Address.
- string
fqdn — Fully qualified domain name of a node in the zone
- string
record_type — The RRType of the service.
Valid values: A or AAAA
- string
zone — Name of the zone.
|
SOAP Syntax
Click to view all SOAP Commands |
AddDDNS — Adds a new Dynamic DNS service to the specified record. |
Arguments:string fqdn — Required. Name of node where the service will exist.
string record_id — Required. The ID of the A or AAAA record where the service will be added.
string token — Required. The session identifier.
string zone — Required. Name of zone where the service will exist. |
Response:
- hash
data
- string
abuse_count — Total number of abusive updates since last good update.
- string
active — A boolean indicating whether or not the service is active.
Y – The service is active.
N – The service is inactive.
- string
last_updated — Timestamp of the last good update by an update client.
- string
address — IPv4 or IPv6 Address.
- string
fqdn — Fully qualified domain name of a node in the zone
- string
record_type — The RRType of the service.
Valid values: A or AAAA
- string
zone — Name of the zone.
|
Example Request: Click for More Info
{
'fqdn' => 'www.example.com',
'record_id' => 5,
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
<< DNS API Knowledge Base