How do you find which nameservers are authoritative for a domain and query them directly?
BeginnerScenarioDNS & Service Discovery
Answer
Situation read → Troubleshooting basics with dig.
What I'd do →
- Run
dig NS example.com +short - Query one directly:
dig @ns1.example.com www.example.comto bypass caches - Compare answers with a public resolver:
dig @1.1.1.1 www.example.com - Look at the
flagsforaa(authoritative answer) - Use
dig +traceto see the delegation chain
Why → Querying the authority directly separates "the record is wrong" from "a cache has stale data".
Interview tip → Say that comparing authoritative and recursive answers is your first move for any "DNS is wrong" ticket.
More on DNS & Service Discovery
A customer types www.example.com in a browser. Walk through how DNS resolves it.BeginnerWhat is the difference between an A record and a CNAME, and when do you use each?BeginnerWhy can't you put a CNAME at the zone apex, and what do you use instead?BeginnerYou are moving a site to a new server. What do you do with DNS to make the cutover smooth?BeginnerWhat DNS records do you set up for company email?BeginnerWhen do you use /etc/hosts and when DNS?Beginner