- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: "localhost" is an unknownhost
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО01-04-2001 09:44 AM
тАО01-04-2001 09:44 AM
"localhost" is an unknownhost
I have an HP-UX 10.20 machine, and I am trying to ping the local machine with "ping localhost". The system responds with "unknownhost localhost". I verified that the /etc/hosts file has the following line:
127.0.0.1 localhost loopback
I can't figure out why this ping command fails. This needs to work because an application uses the localhost alias, and it is giving me errors because "localhost" is an unknown host. Please help!!
Thanks,
Bennett Hunter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2001 09:49 AM
тАО01-04-2001 09:49 AM
Re: "localhost" is an unknownhost
Does your /etc/nsswitch.conf file specify the local hosts file? For instance, if you are using DNS, you should have an entry that looks like: "files [NOTFOUND=continue] dns".
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2001 10:02 AM
тАО01-04-2001 10:02 AM
Re: "localhost" is an unknownhost
Thanks for your reply. The nsswitch.conf file didn't exist, but I created it earlier with the following line (I'm not sure if it is needed):
hosts: dns[NOTFOUND=continue UNAVAIL=continue]files
I will add the line that you mentioned to see if it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2001 10:04 AM
тАО01-04-2001 10:04 AM
Re: "localhost" is an unknownhost
Was this working before.
Check with netstat -rn:
See attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2001 10:09 AM
тАО01-04-2001 10:09 AM
Re: "localhost" is an unknownhost
hosts: files [NOTFOUND=continue] dns
Thanks for the help!