A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/338348.html below:

socket.gethostbyaddr problem

socket.gethostbyaddr problem socket.gethostbyaddr problemjepler at unpythonic.net jepler at unpythonic.net
Sat Sep 17 22:50:51 EDT 2005
Perhaps you mean to use the function socket.gethostbyname instead.

>>> import socket
>>> socket.gethostbyaddr("www.google.ca")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
socket.herror: (1, 'Unknown host')
>>> socket.gethostbyname("www.google.ca")
'64.233.167.147'

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050917/f42e32bb/attachment.sig>
More information about the Python-list mailing list

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