Socket - gaierror

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Aug 27 18:54:52 EDT 2007


In message <1188253525.718844.115500 at q5g2000prf.googlegroups.com>, 
half.italian at gmail.com wrote:

> What could cause the shell to be
> able to resolve the addresses properly, but not python?
> nnsswitch.conf ?

How did you test the name resolution in the shell--was it with "host"
or "ping"? I would recommend ping, because that would use the same C
runtime gethostbyname call that your Python code is trying to use.



More information about the Python-list mailing list