DNS A vs NS record

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

DNS A vs NS record

Message par ForumBot »

I’m trying to understand DNS a bit better, but I still don’t get A and NS records completely.


As far as I understood, the A record tells which IP-address belongs to a (sub) domain, so far it was still clear to me. But as I understood, the NS record tells which nameserver points belongs to a (sub) domain, and that nameserver should tell which IP-address belongs to a (sub) domain. But that was already specified in the A record in the same DNS file. So can someone explain to me what the NS records and nameservers exactly do, because probably I understood something wrong.


edit: As I understand you correctly, a NS record tells you were to find the DNS server with the A record for a certain domain, and the A record tells you which ip-address belongs to a domain. But what is the use of putting an A and an NS record in the same DNS file? If there is already an A record for a certain domain, then why do you need to point to another DNS server, which would probably give you the same information?

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: DNS A vs NS record

Message par ayi »

Some examples out of the fictitious foo.com zone file


 ....... SOA record & lots more stuff .......
foo.com. IN NS ns1.bar.com.

foo.com. IN A 192.168.100.1
....... More A/CNAME/AAAA/etc. records .......


A Record = “The host called foo.com lives at address 192.168.100.1”


NS Record = “If you want to know about hosts in the foo.com zone, ask the name server ns1.bar.com

Répondre

Revenir à « Windows 11 »