Retrieving one or all 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/ GET — Retrieve one or all existing NAPTR Records on the zone/node indicated.
HTTP Action — GET
URIs:
Get One NAPTR Record — https://api.dynect.net/REST/NAPTRRecord/<zone>/<fqdn>/<record_id>/
Get All NAPTR Records — https://api.dynect.net/REST/NAPTRRecord/<zone>/<fqdn>/ |
Arguments:
No Arguments. |
Response:
Get one NAPTR record — Click for More Info
- string
fqdn — Fully qualified domain name of a node in the zone.
- hash
rdata — RData defining the record(s) to replace.
- string
order — Indicates the required priority for processing NAPTR records. Lowest value is used first.
- string
preference — Indicates priority where two or more NAPTR records have identical order values. Lowest value is used first.
- string
flags — Should be the letter “U”. This indicates that this NAPTR record terminal (E.164 number that maps directly to a URI).
- string
services — 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 — The NAPTR record accepts regular expressions.
- string
replacement — The next domain name to find. Only applies if this NAPTR record is non-terminal.
- string
record_type — The RRType of the record.
- string
ttl — TTL for the record.
- string
zone — Name of the zone.
Get all NAPTR records — array — Individual NAPTR Record resources. |
SOAP Syntax
Click to view all SOAP Commands |
GETOneNAPTRRecord — Retrieve one existing NAPTR Record on the zone/node indicated.
GETNAPTRRecords — Retrieve all existing NAPTR Records on the zone/node indicated. |
Arguments:
GetOneNAPTRRecord — 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.
GetNAPTRRecords — 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:
GetOneNAPTRRecord — Click for More Info
- hash
data
- string
fqdn — Fully qualified domain name of a node in the zone.
- hash
rdata — RData defining the record.
- string
order — Indicates the required priority for processing NAPTR records. Lowest value is used first.
- string
preference — Indicates priority where two or more NAPTR records have identical order values. Lowest value is used first.
- string
flags — Should be the letter “U”. This indicates that this NAPTR record terminal (E.164 number that maps directly to a URI).
- string
services — 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 — The NAPTR record accepts regular expressions.
- string
replacement — The next domain name to find. Only applies if this NAPTR record is non-terminal.
- string
record_id — A numeric identifier for the record.
- string
record_type — The RRType of the record.
- string
ttl — TTL for the record.
- string
zone — Name of the zone.
GetNAPTRRecords — Click for More Info
- array
data
- string
fqdn — Fully qualified domain name of a node in the zone.
- hash
rdata — RData defining the record.
- string
order — Indicates the required priority for processing NAPTR records. Lowest value is used first.
- string
preference — Indicates priority where two or more NAPTR records have identical order values. Lowest value is used first.
- string
flags — Should be the letter “U”. This indicates that this NAPTR record terminal (E.164 number that maps directly to a URI).
- string
services — 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 — The NAPTR record accepts regular expressions.
- string
replacement — The next domain name to find. Only applies if this NAPTR record is non-terminal.
- string
record_id — A numeric identifier for the record.
- string
record_type — The RRType of the record.
- string
ttl — TTL for the record.
- string
zone — Name of the zone.
|
Example Request (GetOneNAPTRRecord) — Click for More Info
{
'fqdn' => 'www.example.com',
'rdata' => {
'order' => 1,
'preference' => 10,
'flags' => 's',
'services' => 'rcds+I2C',
'regexp' => '!^.*!example.!',
'replacement' => '_rcds._udp.example.com',
},
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
or
{
'fqdn' => 'www.example.com',
'record_id' => '32',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
Example Request (GetNAPTRRecords) — Click for More Info
{
'fqdn' => 'www.example.com',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
DNS API Knowledge Base