[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] quick bash question
Hi folks,
I'm trying to run various rDNS (PTR) lookups from command line. My
shell-foo is very poor. Can someone help?
I know the hostname I want to lookup - e.g. mail.lug.org.uk and want
to get the PTR record in one line and the shortest number of
key-strokes as possible.
I can get the IP in one command:
host mail.lug.org.uk
and get the PTR record in another:
dig -x 217.147.93.68
but have no idea how to combine the two or pipe output from the first
to the second. I can probably get it in a single command but would be
interested in the solution anyway.
Thanks
Chris
_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html
GNU - The Choice of a Complete Generation