The 'NS' Resource Record (RR) is standarized in RFC 1035 and defines the authoritative name servers for the domain or zone.
There should be a minimum of two name servers defined per domain or zone.


RR Type: NS
ID: 2 (0x0002)
Defining RFC: RFC 1035,  Section 3.3.11,  Page 18
Description: Name Server Record
Function: Delegates a DNS zone to use the given authoritative name servers.
Status: Active

'NS' RR Syntax

name ttl class type rdata {nsdname}

RR Field Example Description
name By default, DNS uses the parent domain name when creating a name server record. You can specify a host or child name, but in most deployments, the field is left blank.
ttl This is the records time to live value (in seconds). If there is no TTL specified, the zone's default $TTL Directive will be used.
class IN Specifies the class to be 'Internet'.
type NS Specifies the RDATA field will contain data in the NS RDATA format.
rdata nsdname Specifies the name server that is authoritative for the domain.


Snippets from a fictitious forward lookup '' zone file

Typical 'NS' Record Entries

;   Zone NS records
IN NS IN A IN AAAA 2a01:8840:6::1
IN NS IN A IN AAAA 2a01:8840:7::1

Invalid Configurations

CNAME records should not be used with either NS or MX records.
Although the following example may work, its technically invalid and should be avoided.

;   Zone records
server01 IN A
server01 IN AAAA 2a01:8840:6::1

See Also

This content was last updated on December 10, 2020
An error has occurred. This application may no longer respond until reloaded. Reload 🗙