Trouble with getting remote Computer Name

Matthias Janes matthias_j at lycos.com
Tue Feb 26 01:12:08 EST 2002


gerson.kurz at t-online.de (Gerson Kurz) wrote in message news:<3c7a75ea.16613828 at news.t-online.de>...

> Example:
> 
> >>> socket.gethostbyname("www.google.com")
>  '216.239.37.101'
> >>> socket.gethostbyaddr('216.239.37.101')[0]
> 'www.google.com'


Thank's a lot this does it for me.



More information about the Python-list mailing list