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
while I'm hosting my web app at the server of company
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.)