* [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
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
> 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
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