I am working on a parser that parses my logfiles at the moment. Since I extract all ip addresses from the logfiles I was interested in doing an automated Whois look up against those.
Python`s socket module has some interesting methods that I used to resolve this problem:
socket.gethostbyaddr(ip_address)
Return a triple (hostname, aliaslist, ipaddrlist) where hostname is [...]



