1. Home
  2. Developer tools
  3. NAPTR Lookup

NAPTR Lookup

NAPTR records are rewriting rules in DNS. Enter a domain and see each record split into its fields, with the flag explained.

Free, no sign-up. Runs in your browser; see “Private by design” for the one online step.

How to use NAPTR Lookup

  1. Enter a domain name.
  2. Press Look up.
  3. Read the fields in order.

Features

  • Order, preference, flags, service, regexp and replacement
  • Explains the flags s, a, u and p
  • Works with Cloudflare and Google output formats
  • Shows TTL
  • Clear message when there are none
  • Runs only on request

Supported formats

Input

  • Domain names
  • Typed or pasted text

You get

  • NAPTR records split into fields

Private by design

Nothing is sent until you press the button. Then the domain names or addresses needed for the check (for example the name and the record type) are sent over HTTPS to the resolver you choose, Cloudflare (cloudflare-dns.com) or Google (dns.google), which see them under their own privacy terms and your IP address. openWorkstand never receives them. How local processing works

Good to know

  • Records are parsed and explained but the rewriting rules are not executed.
  • Regular expressions are shown as text.

Guide

NAPTR records: rewrite rules for SIP, ENUM and similar services

Most record types point to a thing. A NAPTR record points to a rule: it takes a name, applies a pattern and says what to look up next. The format is more complex than anything else in everyday DNS, and the usual reason to look at one is to debug how a SIP phone finds a provider, or how an ENUM service maps a telephone number. The page parses each record into its fields and describes the next step.

The six fields

Every record carries, in order: order and preference, two 16-bit numbers; flags, a short string; service, naming the protocol and resolution method; a regular expression that rewrites the input into a final result; and a replacement, a domain name used when the regular expression is empty. RFC 3403 describes the format. Exactly one of regular expression and replacement is normally used. The page shows an empty expression as “(empty)” and prints the replacement name.

Order, preference and flags

A client sorts the records by order first and works through them in ascending sequence. Within the same order it sorts by preference, but preference is advisory. The flags say what the client does with the result. s means the replacement is the name of an SRV record, which is looked up next to get a host and port. a means look up an address record directly. u means the regular expression produces a URI, the end of the chain. p means the processing is application-specific. An empty flags field means the client must continue with another NAPTR lookup.

Where NAPTR is used

SIP uses it to choose between transports for a domain (RFC 3263): the NAPTR records offer secure TCP, plain TCP and UDP in a priority order, each pointing to an SRV record. ENUM turns telephone numbers into URIs by looking up NAPTR records under e164.arpa. A few other systems, such as some roaming and content-routing schemes, use them. Most domains have none, and the page says so in a plain sentence.

Reading the result

The table has columns for order, preference, flags (with an explanation such as “Next lookup is an SRV record”), service, regular expression, replacement and TTL. The records appear sorted in the order a client would use them. Cloudflare returns text fields in quotes and Google without; the parser accepts both, so the table is the same whichever resolver you pick.

A worked example

Press Sample to look up sip2sip.info. When this guide was reviewed it had three NAPTR records, all with preference 100 and flag s and an empty regular expression. Order 5 had service SIPS+D2T and the replacement _sips._tcp.sip2sip.info, order 10 had SIP+D2T with _sip._tcp.sip2sip.info, and order 20 had SIP+D2U with _sip._udp.sip2sip.info. A SIP client that prefers secure transport follows the first, looks up the SRV record at that name and connects to the host and port it names; the SRV Record Lookup shows that next step.

Limits

The page reads and explains the records but does not run the regular expressions or complete a SIP or ENUM resolution. It looks up the exact name you enter; for ENUM you must build the e164.arpa name yourself. Most ordinary domains return no NAPTR records, which is normal. Combine it with the DNS Lookup for the full picture of a domain.

Checked against the current version of the NAPTR Lookup on .

Frequently asked questions

Why are the service codes like SIP+D2U?

The service field names the protocol and the resolution method. SIP is the application, D2U means DNS to UDP and D2T means DNS to TCP, so SIP+D2U leads to an SRV record for SIP over UDP (RFC 3263).

What is the difference between order and preference?

Order is strict: records with a lower order are always tried first. Preference only ranks records that share the same order, and a client may treat it as a hint.

How are NAPTR records ordered?

The lowest order is tried first; among equal orders the lowest preference wins. Order is strict, preference is only a hint.

What does the flag s mean?

The replacement is the name of an SRV record to look up next, which gives the host and port of the service.

Is anything sent over the internet?

Nothing is sent until you press the button. Then the domain names or addresses needed for the check (for example the name and the record type) are sent over HTTPS to the resolver you choose, Cloudflare (cloudflare-dns.com) or Google (dns.google), which see them under their own privacy terms and your IP address. openWorkstand never receives them.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.