Why doesn’t `dig` show records

digdomain-name-system

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.

Best Answer

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:

dig www.socialimpactportfolio.com
...
www.socialimpactportfolio.com. 1783 IN  CNAME   kochi-9186.herokussl.com.

If you are looking for a tool that will somehow show you the complete zone - I think you're out of luck.

Related Topic