Forum Moderators: bakedjake

Message Too Old, No Replies

Bulk Domain Name Look Up from IP Addresses

         

MikefromVT

6:23 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



Hi.

Does anyone know of a BASH script to send bulk IP addresses through WHOIS (or whatever) for Domain name resolution? The OS of our Server is SuSE 9.1. We are set up with WHOIS client. I can parse the IPs from the access logs but, now that nslookup is deprecated, I am at a loss as to how to pipe the IPs through enmass.

Thanks

Mike

mcavic

7:41 am on Aug 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The replacements for nslookup are dig and host. Nslookup still seems to be the friendliest, though, and it's not deprecated in Fedora Core 4.

If you're talking about Apache access logs, Apache can be set to do the lookups for you; in httpd.conf:

HostnameLookups On

MikefromVT

10:27 am on Aug 14, 2005 (gmt 0)

10+ Year Member



Thank You. That's just what I was after.