Deleting one or more existing NAPTR Records 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.
See RFC 2915 for more information about NAPTR Records.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
/REST/NAPTRRecord/ DELETE — Delete one or all existing NAPTR Records on the zone/node indicated.
HTTP Action — DELETE
URIs:
Delete one NAPTR record — https://api.dynect.net/REST/NAPTRRecord/<zone>/<fqdn>/<record_id>/
Delete all NAPTR records — https://api.dynect.net/REST/NAPTRRecord/<zone>/<fqdn>/ |
Arguments:
No Arguments. |
Response:
Not Applicable. |
SOAP Syntax
Click to view all SOAP Commands |
DELETEOneNAPTRRecord — Delete an existing NAPTR Record on the zone/node indicated.
DELETENAPTRRecords — Delete all existing NAPTR Records on the zone/node indicated. |
Arguments:
DELETEOneNAPTRRecord — Click for More Info
- string
fqdn — Required. Name of node where the record exists.
- string
record_id — The numeric ID of the record to find.
- hash
rdata — RData defining the record(s) to replace.
- string
order — Required. Indicates the required priority for processing NAPTR records. Lowest value is used first.
- string
preference — Required. Indicates priority where two or more NAPTR records have identical order values. Lowest value is used first.
- string
flags — Required. Should be the letter “U”. This indicates that this NAPTR record terminal (E.164 number that maps directly to a URI).
- string
services — Required. Always starts with “e2u+” (E.164 to URI). After the e2u+ there is a string that defines the type and optionally the subtype of the URI where this NAPTR record points.
- string
regexp — Required. The NAPTR record accepts regular expressions.
- string
replacement — Required. The next domain name to find. Only applies if this NAPTR record is non-terminal.
- string
token — Required. The session identifier.
- string
zone — Required. Name of zone where the record exists.
DELETENAPTRRecords — Click for More Info
string fqdn — Required. Name of node where the record exists.
string token — Required. The session identifier.
string zone — Required. Name of zone where the record exists.
|
Response:
Not Applicable. |
Example Request (DeleteOneNAPTRRecord) — Click for More Info
{
'fqdn' => 'www.example.com',
'record_id' => '32',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
Example Request (DeleteNAPTRRecord) — Click for More Info
{
'fqdn' => 'www.example.com',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
DNS API Knowledge Base