Specifies the authoritative DNS servers for a domain
The NS (Name Server) record identifies the authoritative DNS servers for a domain or subdomain. These servers contain the actual DNS records for the domain and respond to DNS queries.
When a DNS resolver needs to find records for a domain, it first queries the parent zone (e.g., .com for example.com) for NS records. These NS records point to the authoritative name servers that have the actual DNS data.
NS records are also used to delegate subdomains to different name servers, which is common for large organizations managing different parts of their infrastructure separately.
domain.com. IN NS ns1.provider.com.example.com. 86400 IN NS ns1.example.com.
example.com. 86400 IN NS ns2.example.com.This domain uses ns1.example.com and ns2.example.com as its authoritative name servers.