---
title: "Creating NAPTR Record"
canonical: "https://docs.infoblox.com/space/BloxOneDDI/186401455/Creating%20NAPTR%20Record"
format: markdown
---
<span style="color: #000000">An NAPTR (Name Authority Pointer) record specifies a rule that uses a substitution expression to rewrite a string into a domain name or URI (Uniform Resource Identifier). A URI is either a URL (Uniform Resource Locator) or URN (Uniform Resource Name) that identifies a resource on the Internet.</span>  
  
<span style="color: #000000">NAPTR records are usually used to map E.164 numbers to URIs or IP addresses. An E.164 number is a telephone number, 1-555-123-4567 for example, in a format that begins with a country code, followed by a national destination code and a subscriber number. (E.164 is an international telephone numbering system recommended by the International Telecommunication Union.) Thus, NAPTR records allow us to use telephone numbers to reach devices, such as fax machines and VoIP phones, on the Internet.</span>  
  
<span style="color: #000000">To map an E.164 to a URI, the E.164 number must first be transformed into a domain name. ENUM (E.164 Number Mapping) specifies a method for converting E.164 numbers to domain names. For example, using the method specified by ENUM, the telephone number 1-555-123-4567 becomes the domain name </span><span style="color: #000000">[7.6.5.4.3.2.1.5.5.5.1.e164.arpa](http://7.6.5.4.3.2.1.5.5.5.1.e164.arpa)</span><span style="color: #000000">. For details about ENUM, refer to </span><span style="color: #000000">*RFC*</span><span style="color: #000000"> </span><span style="color: #000000">*3761,*</span><span style="color: #000000"> </span><span style="color: #000000">*The*</span><span style="color: #000000"> </span><span style="color: #000000">*E.164*</span><span style="color: #000000"> </span><span style="color: #000000">*to*</span><span style="color: #000000"> </span><span style="color: #000000">*Uniform*</span><span style="color: #000000"> </span><span style="color: #000000">*Resource*</span><span style="color: #000000"> </span><span style="color: #000000">*Identifiers*</span><span style="color: #000000"> </span><span style="color: #000000">*(URI)*</span><span style="color: #000000"> </span><span style="color: #000000">*Dynamic*</span><span style="color: #000000"> </span><span style="color: #000000">*Delegation*</span><span style="color: #000000"> </span><span style="color: #000000">*Discovery*</span><span style="color: #000000"> </span><span style="color: #000000">*System*</span><span style="color: #000000"> </span><span style="color: #000000">*(DDDS)*</span><span style="color: #000000"> </span><span style="color: #000000">*Application*</span><span style="color: #000000"> </span><span style="color: #000000">*(ENUM)*</span><span style="color: #000000">.</span>  
  
<span style="color: #000000">After the E.164 number is converted to a domain name, a DNS client can then perform a DNS lookup for the NAPTR records of the domain name. The following example illustrates how a DNS client processes NAPTR records.</span>  
  
<span style="color: #000000">In this example, the telephone number 1-555-123-4567 is converted to the domain name </span><span style="color: #000000">[7.6.5.4.3.2.1.5.5.5.1.e164.arpa](http://7.6.5.4.3.2.1.5.5.5.1.e164.arpa)</span><span style="color: #000000">. The DNS client then sends a query to the Infoblox DNS server for the NAPTR records associated with </span><span style="color: #000000">[7.6.5.4.3.2.1.5.5.5.1.e164.arpa](http://7.6.5.4.3.2.1.5.5.5.1.e164.arpa)</span><span style="color: #000000">. The Infoblox DNS server returns the following NAPTR record:</span>

![image](media://2b7fceba-c2b8-4bc5-9448-9a7d670f9c7a)

<span style="color: #000000">The DNS client then examines the fields in the NAPTR record as follows:</span>

- <span style="color: #000000">If a DNS client receives multiple NAPTR records for a domain name, the value in the Order field determines which record is processed first. It processes the record with the lowest value first.</span>
- <span style="color: #000000">The DNS client uses the Preference value when the Order values are the same. Similar to the Preference field in MX records, this value indicates which NAPTR record the DNS client should process first when the records have the same Order value. It processes the record with the lowest value first.</span>  
<span style="color: #000000">In the example, the DNS client ignores the Order and Preference values because it received only one NAPTR record.</span>
- <span style="color: #000000">The Flag field indicates whether the current lookup is terminal; that is, the current NAPTR record is the last NAPTR record for the lookup. It also provides information about the next step in the lookup process. The flags that are currently used are:</span>
  - **U**<span style="color: #000000">: Indicates that the output maps to a URI (Uniform Record Identifier).</span>
  - **S**<span style="color: #000000">: Indicates that the output is a domain name that has at least one SRV record. The DNS client must then send a query for the SRV record of the resulting domain name.</span>
  - **A**<span style="color: #000000">: Indicates that the output is a domain name that has at least one A or AAAA record. The DNS client must then send a query for the A or AAAA record of the resulting domain name.</span>
  - **P**<span style="color: #000000">: Indicates that the protocol specified in the Service field defines the next step or phase.</span>

- <span style="color: #000000">If the Flag field is blank, this indicates that the client must use the resulting domain name to look up other NAPTR records.</span>
- <span style="color: #000000">The Service field specifies the service and protocol that are used to communicate with the NIOS-X Server at the domain name. In the example, the service field specifies that SIP (Session Initiation Protocol) is used to contact the telephone service.</span>
- <span style="color: #000000">The regular expression specifies the substitution expression that is applied to the original string of the client. In the example, the regular expression !^.*$!sip:jdoe@</span><span style="color: #000000">[example.com](http://example.com)</span><span style="color: #000000">! specifies that the domain name </span><span style="color: #000000">[7.6.5.4.3.2.1.5.5.5.1.e164.arpa](http://7.6.5.4.3.2.1.5.5.5.1.e164.arpa)</span><span style="color: #000000"> is replaced with sip:jdoe@</span><span style="color: #000000">[example.com](http://example.com)</span><span style="color: #000000">.</span>  
<span style="color: #000000">The regular expression in a NAPTR record is always applied to the original string of the client. It must not be applied to a domain name that resulted from a previous NAPTR rewrite.</span>
- <span style="color: #000000">The Replacement field specifies the FQDN for the next lookup, if it was not specified in the regular expression.</span>

<span style="color: #000000">To create a NAPTR Record, complete the following:</span>

1. <span style="color: #000000">From the Infoblox Portal, click </span>**Network > DNS  > Zones**<span style="color: #000000">.</span>
2. <span style="color: #000000">Click the DNS view. </span>
3. <span style="color: #000000">Click the zone.</span>
4. <span style="color: #000000">Click </span><span style="color: #000000">**Create **</span><span style="color: #000000">></span><span style="color: #000000">** Record **</span><span style="color: #000000">and select </span><span style="color: #000000">**NAPTR Record **</span><span style="color: #000000">from the drop-down list.</span>

<span style="color: #000000">On the </span><span style="color: #000000">*Create NAPTR Record*</span><span style="color: #000000"> page, specify the following </span>and click **Save & Close**:

> Macro (excerpt)
> 
> - <span style="color: #000000">**Domain**</span><span style="color: #000000">: Enter the domain. </span>
> - **Select Zone**: Select an associated zone from the column selector.
> - <span style="color: #000000">**Service**</span><span style="color: #000000">: Enter or select the service. </span>
> - <span style="color: #000000">**Flags**</span><span style="color: #000000">: Enter or select the flags. </span>
> - <span style="color: #000000">**Order**</span><span style="color: #000000">: Enter or select the order. </span>
> - <span style="color: #000000">**Preference**</span><span style="color: #000000">: Enter or select the preference. </span>
> - <span style="color: #000000">**Regex**</span><span style="color: #000000">: Enter the Regex. </span>
> - <span style="color: #000000">**Replacement**</span><span style="color: #000000">: Enter the replacement.</span>
> - **Record Protection**: The record protection options are only displayed when you modify a resource record. <span style="color: #292a2e">The option to enable record protection is also only visible when you are the Global Admin or are a DDI Admin.  </span>For detailed information about this feature, see *[DNS Record Protection](https://infoblox-docs.atlassian.net/wiki/spaces/BloxOneDDI/pages/2056815453)*. Choose one of the following options for the role-based access control:
>   - **None**: Choose this option if you do not want any protection for this record. If you choose this option, any user can modify this record.
>   - **Global Admin Only**: Only the Global Admin will be able to modify this record. If a DDI Admin or a non-admin views this record, the fields will be greyed out and they will not be able to modify this record.
>   - **DDI Admin Only**: Only the DDI Admin and the Global Admin will be able to modify this record. If a non-admin views this record, the fields will be greyed out and they will not be able to modify this record.
> - <span style="color: #000000">**Description**</span><span style="color: #000000">: Enter a descriptive comment about the NAPTR Record.</span>
> - <span style="color: #000000">**TTL**</span><span style="color: #000000">: Enter a numeric value and select Hours, Minutes, or Seconds from the drop-down.</span>
> - <span style="color: #000000">**Disable for DNS Protocol**</span><span style="color: #000000">: Click this check box to temporarily disable for DNS Protocol. </span>
> - <span style="color: #000000">**Tags**</span><span style="color: #000000">: Click </span><span style="color: #000000">**Add**</span><span style="color: #000000"> to associate keys with values. Specify the following details:</span>
>   - <span style="color: #000000">**KEY**</span><span style="color: #000000">: Enter a meaningful name for the key, such as a location or a department. </span>
>   - <span style="color: #000000">**VALUE**</span><span style="color: #000000">: Enter a value for the key such as San Jose (for location), or Accounts (for department).   </span>
>   - <span style="color: #000000">To remove a tag, select the respective check box and click </span><span style="color: #000000">**Remove**</span><span style="color: #000000"> to delete the associated tag. For more information about tags, see </span><span style="color: #000000">*[Managing Tags](https://infoblox-docs.atlassian.net/wiki/spaces/BloxOneDDI/pages/186745865)*</span><span style="color: #000000">.</span>