NS (Name Server) is a type of DNS record that lists the authoritative name servers for a domain zone. It is the NS records that tell the whole internet which servers are responsible for a domain's data and where to look for its other records.
When you register a domain, you specify its name servers — usually a pair like ns1.example.com and ns2.example.com. The parent zone (for example, the zone of a top-level domain) holds NS records that delegate the domain to those servers, and a resolver walking down the hierarchy uses them to learn who to ask for the A record and the rest of the data. Several NS servers are set for resilience: if one is unavailable, another serves the query.
NS records need to be kept in sync in two places:
Together with the NS records, a zone always begins with an SOA record, which stores service parameters and identifies the primary name server among those listed.