I'm trying to learn more about the dig command and have come across the
-x option which is meant for reverse lookup, i.e. you give an IP address and get back a domain name.
I tried doing
dig -x www.google.com which I guess doesn't really make sense with the
-x option, but I got back this response:
; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> -x www.google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2959 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;com.google.www.in-addr.arpa. IN PTR ;; AUTHORITY SECTION: in-addr.arpa. 3180 IN SOA b.in-addr-servers.arpa. nstld.iana.org. 2015074802 1800 900 604800 3600 ;; Query time: 0 msec ;; SERVER: 18.104.22.168#53(22.214.171.124) ;; WHEN: Sun Oct 16 17:06:24 PDT 2016 ;; MSG SIZE rcvd: 124
Can anybody help me get a better understanding of what this reponse tells us, I thought you weren't supposed to use the
-x option with a domain name.