HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- getaddrinfo fails to resolve domains from /etc/hos...
Operating System - HP-UX
1831726
Members
4347
Online
110029
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2004 08:07 PM
06-14-2004 08:07 PM
getaddrinfo fails to resolve domains from /etc/hosts
On HP-UX 11i, I am facing problems using getaddrinfo to resolve domains specified in /etc/hosts. The attached is a test program which reproduces the same. (gcc -D_XOPEN_SOURCE_EXTENDED resolve_host.c)
What I have observed is that the test program works for all domains resolving from DNS. When I try domains that are specified in /etc/hosts, it fails for all domains except for the last one.
./resolve_host files.hpdomain1.com
Failed to resolve IP address for files.hpdomain1.com
Error: host nor service provided, or not known
I have installed the following patches but the problem still occurs.
PHCO_25569
PHNE_27796
PHCO_28605
PHNE_30068
Is there any patch available which fixes this problem ?
What I have observed is that the test program works for all domains resolving from DNS. When I try domains that are specified in /etc/hosts, it fails for all domains except for the last one.
./resolve_host files.hpdomain1.com
Failed to resolve IP address for files.hpdomain1.com
Error: host nor service provided, or not known
I have installed the following patches but the problem still occurs.
PHCO_25569
PHNE_27796
PHCO_28605
PHNE_30068
Is there any patch available which fixes this problem ?
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2004 09:34 PM
06-14-2004 09:34 PM
Re: getaddrinfo fails to resolve domains from /etc/hosts
PHCO_30030 fixed the problem.
-Midhun
-Midhun
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP