Every time I use dig
I get a vague feeling that I'm not really sure whether it's giving me correct data.
Now I've used it like this:
# dig socialimpactportfolio.com
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> socialimpactportfolio.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35289
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;socialimpactportfolio.com. IN A
;; AUTHORITY SECTION:
socialimpactportfolio.com. 1799 IN SOA dns1.name-services.com. info.name-services.com. 2002050701 10800 3600 604800 3600
;; Query time: 121 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu May 22 14:01:03 2014
;; MSG SIZE rcvd: 103
As you can see, there is no ANSWER
section, despite the fact that there's a working website on that domain.
Why?
I'd really like a program that simply shows all the DNS records in the most non-confusing manner.
Your query is incorrect, or to put it differently - no, there is no entry for
socialimpactportfolio.com
. Dig is telling you about the problem.The domain works in the browser, because it will helpfully try and add the
www.
prefix, and lo and behold:If you are looking for a tool that will somehow show you the complete zone - I think you're out of luck.
I just checked, that domain doesn't have an A record, so your dig output is correct. The website is located under www..socialimpactportfolio.com, i.e. www.socialimpactportfolio.com, which again points (two chained CNAMEs) to amazonaws.com.
Getting
NOERROR
and yet noANSWER SECTION
is telling you that the domain name does exist, but has no records of the specified type. In fact a domain name can exist without having any records at all, and that is different from returningNXDOMAIN
, though in many cases applications will treat them the same.In both cases a
SOA
record is included such that the client will know how long that answer may be cached.A domain with no records at all can have subdomains, which do have records.
It says it all in the dig output:
No errors, you did 1 query, there were no answers, the response was from an authoritative nameserver.
If you search for all records for that zone, you will find more information: