dns reverse look up with python ?

Hans Nowak ivnowa at hvision.nl
Tue Jan 9 04:12:21 EST 2001


On 9 Jan 01, Ralf Claus wrote:

> Hi,
> any suggestion about this theme ?
> Is there a way for me (newbie) ?
> 
> thanks for any suggestion

You mean something like this?

>>> import socket
>>> socket.gethostbyname('www.hvision.nl')
'194.158.183.180'
>>> socket.gethostbyaddr('194.158.183.130')
('axil.hvision.nl', ['popmail.hvision.nl', 'popmail.hvision.nl'], 
['194.158.183.130'])
>>> 

HTH,

--Hans Nowak (ivnowa at hvision.nl)
Info Vision Europe BV




More information about the Python-list mailing list