socket.gethostbyaddr() problem
Jason Abate
jason at hostway.com
Wed Feb 2 18:22:57 EST 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
exception:
socket.gethostbyaddr(socket.gethostname())
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.
Thanks,
-jason
-------------------------------
Jason Abate
Hostway Corporation
jason at hostway.com
More information about the Python-list
mailing list