The NS, or Name Server records of a domain name, show which servers handle the Domain Name System (DNS) records for it. Setting the name servers of a specific hosting provider for your domain name is the most effective way to point it to their system and all its sub-records will be managed on their end. This includes A (the IP address of the server/website), MX (mail server), TXT (free text), SRV (services), CNAME (forwarding), and so forth, so if you would like to modify some of these records, you will be able to do it using their system. Put simply, the NS records of a domain name point out the DNS servers which are authoritative for it, so when you try to open a web address, the DNS servers are contacted to obtain the DNS records of the Internet domain you want to access. This way the website that you will see will be retrieved from the correct location. The name servers usually have a prefix “ns” or “dns” and every single domain name has at least 2 NS records. There is no sensible difference between the two prefixes, so what type a hosting provider will use depends exclusively on their preference.
