[Cialug] DNS Reverse Lookup

Matthew Lechleider matthew at lechleider.com
Fri May 15 23:33:13 CDT 2009


Try dig with the flag -x for reverse lookup.

dig -x IP


Tom Sellers wrote:
> I have set up a DNS server on my home network and although it resolves machine names to IP addresses just fine I can't seem to make it perform the reverse lookup properly.
>
> Below is an example and the DIG information on my DNS server.
>
> Can anyone shed some light on where I have gone wrong here?
>
> ------------------------------------------------------------------------
>
> tsellers at bluto-laptop:~$ nslookup gw
> Server:		192.168.1.9
> Address:	192.168.1.9#53
>
> Name:	gw.mydomain.com
> Address: 192.168.1.1
>
> tsellers at bluto-laptop:~$ nslookup 192.168.1.1
> Server:		192.168.1.9
> Address:	192.168.1.9#53
>
> ** server can't find 1.1.168.192.in-addr.arpa.: NXDOMAIN
>
> tsellers at bluto-laptop:~$ dig mydomain.com
>
> ; <<>> DiG 9.5.0-P2 <<>> mydomain.com
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29703
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;mydomain.com.			IN	A
>
> ;; AUTHORITY SECTION:
> mydomain.com.		38400	IN	SOA	bluto.mydomain.com. admin.mydomain.com. 2007062001 28800 3600 604800 38400
>
> ;; Query time: 1 msec
> ;; SERVER: 192.168.1.9#53(192.168.1.9)
> ;; WHEN: Fri May 15 23:17:25 2009
> ;; MSG SIZE  rcvd: 78
>
>
>
>       
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>   



More information about the Cialug mailing list