On Sat, Apr 05, 2014 at 06:23:05PM +0200, li...@rhsoft.net wrote: > Am 05.04.2014 18:06, schrieb /dev/rob0: > > One other comment to this thread: please, PLEASE, get rid of > > nslookup. It is broken, bug-ridden garbage that will not be > > fixed. Nobody in A.D. 2014 should be recommending it. The > > proper tool for DNS troubleshooting is dig(1) > > agreed, but until now i found no way to do the PTR request > with dig or was not interested that much to dig docs instead > just type or find it absurd that "dig PTR 8.8.8.8" don't work
"dig -x 8.8.8.8" is what you're after. :) The -x says "reverse the dotted elements, append '.in-addr.arpa.' and set QTYPE to PTR." Unlike most dig command line elements, order matters: the "-x" must come immediately before the IP address being queried. Note that it's not smart. ANY string of dotted elements will be handled in this way, not just an IPv4 address. Agreed that nslookup has a lower learning curve, and some folks prefer its interactive mode. To me that's not worth the risk of getting wrong/misleading data. > [harry@srv-rhsoft:~]$ nslookup 8.8.8.8 > Server: 127.0.0.1 > Address: 127.0.0.1#53 > > Non-authoritative answer: > > 8.8.8.8.in-addr.arpa name = google-public-dns-a.google.com. -- http://rob0.nodns4.us/ Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: