bind problem

Thomas Guettler pan-newsreader at thomas-guettler.de
Fri Nov 15 14:02:26 EST 2002


On Fri, 15 Nov 2002 18:40:13 +0100, Dan Stromberg wrote:

> I'm still having my previously-mentioned problem binding sockets in
> python 2.2.  Things are fine on linux, but they don't work on solaris -
> some solaris hosts, not all, I think.
> 
> I'm approaching the group again about it, because I've run across
> another, much smaller program with the same problem - in fact it's so
> small, but I think it'll be ok to post it here in its entirety.
> 
> The error I get with 2.2.1 is:
> 
> Traceback (most recent call last):
>   File "/tmp/packetpasser", line 108, in ?
>     main()
>   File "/tmp/packetpasser", line 60, in main
>     sockin.bind(('',read_from))
> socket.gaierror: (3, 'getaddrinfo failed')

"getaddrinfo failed" sounds like you can't resolve 
the dns-name of a machine to its ip-address.

does "nslookup machine" work?

Does it work if you use ip-adresses instead?

 thomas

-- 
Thomas Guettler <guettli at thomas-guettler.de>
http://www.thomas-guettler.de



More information about the Python-list mailing list