NS records
The NS records specify the domain nameservers used for resolving hostnames to IP addresses. You may ask why do zone files need an NS record at all? Because it basically references itself. This is because NS records may have changed, and other servers need to be updated with the IP/hostname of the new domain nameserver.
Previously, this was pointed at dns1.registrar-servers.com, and was cached at many resolving nameservers. When these resolving nameservers query dns1.registrar-servers.com for the IP of hobnob.social, they see that the NS record has been updated to ns1.digitalocean.com and send the request to DigitalOcean's domain nameservers instead.
We can use a program called dig to get the records from the zone file for our domain: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access