How do I find the authoritative name-server for a domain name?

前端 未结 12 1994
你的背包
你的背包 2021-01-29 17:17

How can I find the origins of conflicting DNS records?

12条回答
  •  滥情空心
    2021-01-29 17:47

    The term you should be googling is "authoritative," not "definitive".

    On Linux or Mac you can use the commands whois, dig, host, nslookup or several others. nslookup might also work on Windows.

    An example:

    $ whois stackoverflow.com
    [...]
       Domain servers in listed order:
          NS51.DOMAINCONTROL.COM
          NS52.DOMAINCONTROL.COM
    

    As for the extra credit: Yes, it is possible.


    aryeh is definitely wrong, as his suggestion usually will only give you the IP address for the hostname. If you use dig, you have to look for NS records, like so:

    dig ns stackoverflow.com
    

    Keep in mind that this may ask your local DNS server and thus may give wrong or out-of-date answers that it has in its cache.

提交回复
热议问题