How to Get Authoritative DNS for Domain

Objective: Get authoritative DNS servers for a domain.

Common tools like dig, nslookup, whois and host can be used to determine the authoritative DNS servers for a zone or domain.

Use the dig command to query NS records. NS records indicate which name servers are authoritative for the zone or domain. Currently, CloudFlare provides the authoritative DNS for digitalinternals.com.

If you are the more adventurous type, you can start tracing the DNS server records all the way from the TLD (top-level domain). So, for the domain digitalinternals.com, the TLD is com. First, get the SOA record for com TLD.

Now, we have to let dig query the DNS server a.gtld-servers.net for the domain digitalinternals.com.

Use nslookup to query the NS records using the syntax shown below.

To get the authoritative DNS server list using whois command, use the following syntax.

To get the authoritative DNS server list using host command, use the following syntax.

ibrahim = { interested_in(unix, linux, android, open_source, reverse_engineering); coding(c, shell, php, python, java, javascript, nodejs, react); plays_on(xbox, ps4); linux_desktop_user(true); }