2

I'm trying to understand how DNS works. Even after a quiet amount of searching it's still not clear to me how NS record works. Now I've following two facts.

Fact 1 (based on this article, the first paragraph)

An NS record or (name server record) tells recursive name servers which name servers are authoritative for a zone.

Fact 2 (here, under the authorative name server section)

The authoritative nameserver contains information specific to the domain name it serves (e.g. google.com) and it can provide a recursive resolver with the IP address of that server found in the DNS A record...

Now, say I choose company A for my domain name provider - I've bought my domain name from A while I'm hosting my web app at the server of company B.

So based on fact 1 and 2 my question are -

(1) Will company A (from where I bought the domain name) will work for me as an authoritative server and it will point to the B's server through (A record)?

(2) Since the NS record says where my authoritative server is, so It means the NS record will not be stored in the authoritative server. Is this assumption correct?

(3) Somewhere I've to set all the DNS record (like A-record, MX-record, CNAME-record) so it will point to my web app hosting server correctly. An authoritative server is a place for this, which I've to maintain by myself?

Thanks in advance. (I know I've asked a lot in the same post. You might find it boring, I'm sorry for that.)

4

There are actually three entities involved in the scenario in the question (at least conceptually):

  • Registrar ("A" in question)
  • DNS hosting provider
  • Web hosting provider ("B" in question)

In theory the role of the registrar is only to register domain names with the registry and to update parameters for registered domain names in the registry on behalf of the registrant (customer).

In practice many registrars also provide DNS hosting services in addition to domain name registration, either for free as a value-add or as an upsell option.
Worth noting in such cases is that the same entity being both registrar and DNS hosting provider is coincidental in terms of how the system actually works.

Conceptually the registrant (customer) tells the registrar which nameservers they want to use for their domain name and the registrar enters these into the registry, after which corresponding NS records are published in the parent zone. In the case where you also use DNS hosting services provided by the registrar company, the nameserver information for their own nameservers is typically entered without any explicit action from the registrant.

  1. This depends entirely on whether the registrar ("company A") also provide DNS hosting services (as per the note above), and obviously also if the registrant chooses to use these.
  2. There are NS records in the delegation data in the parent zone in order to let resolvers actually find the authoritative nameservers of the child zone, but the authoritative NS records are part of the child zone. These sets of NS records should always match! (Remember to update both)
  3. You can run your own nameserver, if you desire, or you can use the services of some DNS hosting provider (as noted earlier, the registrar company may provide such services, but you can also use any other DNS hosting provider).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.