[Python-bugs-list] [ python-Bugs-817611 ] Google kills socket lookup

SourceForge.net noreply at sourceforge.net
Wed Oct 15 18:01:59 EDT 2003


Bugs item #817611, was opened at 2003-10-04 11:11
Message generated for change (Comment added) made by johahn
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: Johan M. Hahn (johahn)
Date: 2003-10-16 00:01

Message:
Logged In: YES 
user_id=887415

Good answer. Since this is not a bug I suggest Gert or 
someone removes it from the bug list. Does anyone know of 
another forum for these kind of common non-bug questions? I 
could only think of posting to comp.lang.python/activestate's 
python-list for archival purpose.




...johahn


----------------------------------------------------------------------

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