socket.gethostbyaddr() problem

Jason Abate jason at
Thu Feb 3 00:22:57 CET 2000

I'm having a problem with socket.gethostbyaddr().  If I call it as
root, it works fine, but if I call it as non-root, I get the following

    socket.error: host not found

This is on a fairly standard Redhat 6.0 box.  I've checked to see if
/etc/hosts is world readable, and nslookup on the machine works fine.
Any idea what could be causing this problem?  I'm desparate to fix
and, and welcome any suggestions.



Jason Abate
Hostway Corporation
jason at

More information about the Python-list mailing list