Re: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-18 Thread O.R.Senthil Kumaran
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> : > On python2.4.1 > > >>> socket.getaddrinfo('www.python.org', None, socket.AF_INET, > socket.SOCK_DGRAM, socket.IPPROTO_IP, socket.AI_CANONNAME) > [(2, 2, 17, 'dinsdale.python.org', ('82.94.237.218', 0))] > >>> > > Blinston. Thanks a lot, Blinston. Tha

Re: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-17 Thread Blinston_Fernandes
On python2.4.1 >>> socket.getaddrinfo('www.python.org', None, socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_IP, socket.AI_CANONNAME) [(2, 2, 17, 'dinsdale.python.org', ('82.94.237.218', 0))] >>> Blinston. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-17 Thread Martin v. Löwis
> Any help/ pointers? Did you read the man page of getaddrinfo, or the RFC? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python

Re: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-17 Thread skip
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