7

Why is it "Non-authoritative"? Even when I look for yahoo.com ip with ns3.yahoo.com I get Non-authoritative answer.

Why does a yahoo server keep stackoverflow's ip? From where do I get stackoverflow's ip if not from ns3.yahoo.com?

sebix
  • 4,313
  • 2
  • 29
  • 47
Xiobiq
  • 179
  • 1
  • 1
  • 2
  • 1
    Without getting into the details about how DNS works I'll simply say that in order to get an authoritative answer you need to query the name server(s) that is/are authoritative for the domain/name you're querying. Yahoo's name serves are not authoritative for the stackoverflow.com DNS namespace. – joeqwerty Nov 29 '14 at 23:21
  • 1
    Nice answer -- why is it in the comments, and not in the answers? – Gerard ONeill Sep 11 '17 at 21:50

1 Answers1

11

You should have a look at how DNS works: http://en.wikipedia.org/wiki/Domain_Name_System.

Every domain is managed by authoritative name servers, and Yahoo server are not the authoritative ones for the stackoverflow.com domain; what's happening here is, when you ask them for info about a domain they are not authoritative for, they in turn ask the authoritative servers, and return their answer to you; thus, the answer you get for your query is non authoritative, because Yahoo's DNS servers are only relaying it to you from other servers, they are not the ones which actually manage that domain.

In order to find the authoritative name servers for a domain, you should perform a NS query:

> set query=ns
> stackoverflow.com

stackoverflow.com       nameserver = cf-dns02.stackoverflow.com
stackoverflow.com       nameserver = cf-dns01.stackoverflow.com

If you ask one of those servers, you'll get an authoritative answer.

Massimo
  • 70,200
  • 57
  • 200
  • 323