[ python-Bugs-979967 ] gethostbyname is broken on hpux 11.11

SourceForge.net noreply at sourceforge.net
Fri Jun 25 16:15:43 EDT 2004


Bugs item #979967, was opened at 2004-06-25 14:50
Message generated for change (Comment added) made by ehab_teima
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=979967&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 9
Submitted By: Ehab Teima (ehab_teima)
Assigned to: Nobody/Anonymous (nobody)
Summary: gethostbyname is broken on hpux 11.11

Initial Comment:
This bug exists in Python 2.3.2, 2.3.3 and 2.3.4. 
socket.gethostbyname is broken on hpux HP-UX B.11.11 
U. This is what I'm getting when I try to call 
socket.gethostbyname('server'):

Traceback (most recent call last):
  File "../../test.py", line 2, in ?
    a=socket.gethostbyname('myserver')
socket.gaierror: (8, 'host nor service provided, or not 
known')

I got the same error when I tried getaddrinfo(server, 
port).

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

>Comment By: Ehab Teima (ehab_teima)
Date: 2004-06-25 15:15

Message:
Logged In: YES 
user_id=1069522

The servername is supposed to be resolved via DNS query to 
get thje ip address. If I use the ip address instead of the 
servername, the function works fine [i.e. 
socket.gethostbyname('x.x.x.x') works fine.]


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=979967&group_id=5470



More information about the Python-bugs-list mailing list