[Cialug] saving a step in rdns lookups

Matthew Nuzum newz at bearfruit.org
Wed Oct 8 10:38:56 CDT 2008


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


More information about the Cialug mailing list