[Cialug] saving a step in rdns lookups

Tom Pohl tom at tcpconsulting.com
Wed Oct 8 10:46:47 CDT 2008


You could always make a bash script that replaces the www.google.com  
with $1 and basically do this:

host www.google.com |grep address|awk '{print $4}'|xargs -n 1 host

-Tom

On Oct 8, 2008, at 10:38 AM, Matthew Nuzum wrote:

> Here is a task I do frequently:
>
> $ host <some hostname>
> <some hostname> has address 11.22.33.44
> /me copies and pastes the ip address
> $ host <pastes ip address>
> w.x.y.z.in-addr.arpa domain name pointer <some hostname>
>
> So I'm wondering, is there a way in one command to put in a hostname
> and get out the reverse dns hostname for the machine? The reason is I
> deal with numerous virtual hosts and I have a hard time remembering
> which hosts are on which servers (and it doesn't help that they have a
> tendency to move around without notice).
>
> -- 
> Matthew Nuzum
> newz2000 on freenode
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug



More information about the Cialug mailing list