unknown host

Steve Holden steve at holdenweb.com
Fri Jun 1 18:28:33 CEST 2007

abcd wrote:
> I have a linux machine (ip =, which can ping other
> machines on the same subnet...such as
> If I use socket.gethostbyaddr(<ip>) I get back results when ip is
> and but for the other IP addresses
> (, .6, etc) I get back "unknown host".  In fact I get
> "unknown host" for the linux machine that I run the gethostbyaddr
> from.
> If perform the same operation from a windows machine (ip =
> it returns data for the other IP addresses as expected.
> any ideas?
Probably the Windows hosts are resolving the addresses to names using 
WINS, a NetBIOS-over-TCP compatible naming service, while the Unix hosts 
are trying to use the DNS.

If you could arrange for your hosts to register on the DNS automatically 
that might solve the problem.

Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
------------------ Asciimercial ---------------------
Get on the web: Blog, lens and tag your way to fame!!
holdenweb.blogspot.com        squidoo.com/pythonology
tagged items:         del.icio.us/steve.holden/python
All these services currently offer free registration!
-------------- Thank You for Reading ----------------

More information about the Python-list mailing list