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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to