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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4