[Python-bugs-list] [ python-Bugs-817611 ] Google kills socket lookup
SourceForge.net
noreply at sourceforge.net
Sun Oct 5 10:41:17 EDT 2003
Bugs item #817611, was opened at 2003-10-04 11:11
Message generated for change (Comment added) made by ronaldoussoren
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=817611&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerd Schulz (spikeee)
Assigned to: Nobody/Anonymous (nobody)
Summary: Google kills socket lookup
Initial Comment:
Just test:
>>> socket.gethostbyname('www.google.com')
'216.239.39.99'
>>> socket.gethostbyaddr('216.239.39.99')
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
herror: (11004, 'host not found')
Don't know why. Maybe of this strange akadns-stuff?!?!
He struggles around for quite a time before he comes to
the error, maybe to much or cyclic input.
Cheers,
Spikeee
----------------------------------------------------------------------
Comment By: Ronald Oussoren (ronaldoussoren)
Date: 2003-10-05 16:41
Message:
Logged In: YES
user_id=580910
This is not a bug/feature of the python socket module, but of DNS
itself. DNS uses a seperate tree to find the name associated with
an IP adres, there is no entry for the address associated with
www.google.com.
The same feature can be observed from the command-line:
$ nslookup www.google.com ns.xs4all.nl
Server: ns.xs4all.nl
Address: 194.109.6.66#53
Non-authoritative answer:
www.google.com canonical name = www.google.akadns.net.
Name: www.google.akadns.net
Address: 216.239.59.99
$ nslookup 216.239.59.99 ns.xs4all.nl
Server: ns.xs4all.nl
Address: 194.109.6.66#53
** server can't find 99.59.239.216.in-addr.arpa: NXDOMAIN
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=817611&group_id=5470
More information about the Python-bugs-list
mailing list