[Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()
skip at pobox.com
skip at pobox.com
Mon Sep 17 23:05:15 CEST 2007
Senthil> To get the hostname, I can use socket.gethostbyname() but that
Senthil> has an inherent limitation wherein does it not support IPv6
Senthil> name resolution, and getaddrinfo() should be used instead.
...
For those who would ask Senthil to take this to comp.lang.python, he already
did and got no response. He's working on fixes to urllib2, so this seems to
me to be a python-dev question and I suggested he post here. I tried it
with 2.5, 2.6 and 3.0 and got blanks for the canonical name as well.
Hopefully someone with more network-fu can steer him in the right direction.
Skip
More information about the Python-Dev
mailing list