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

SourceForge.net noreply at sourceforge.net
Sun Jun 27 16:59:40 EDT 2004


Bugs item #979967, was opened at 2004-06-25 21:50
Message generated for change (Comment added) made by loewis
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: 5
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: Martin v. Löwis (loewis)
Date: 2004-06-27 22:59

Message:
Logged In: YES 
user_id=21627

Can you investigate this in more detail, and suggest a patch?

If not, it is unlikely that it will be fixed anytime soon,
because the bug is likely specific to the operating system,
and might be even specific to your installation.

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

Comment By: Ehab Teima (ehab_teima)
Date: 2004-06-25 22: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