- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- can't resolve localhost (!)
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
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
тАО04-18-2002 12:31 AM
тАО04-18-2002 12:31 AM
We've got a HP-UX 11.00 server which has no way to resolve localhost to IP 127.0.0.1. We've got an entry for it in /etc/hosts, but it doesn't work. I've asserted that disabling /etc/resolv.conf (by renaming it or by another means) "solves" the problem. But, of course, we need the /etc/resolv.conf.
In a nuthsell... is there any way to make it resolve through /etc/hosts when DNS is not satisfactory?
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2002 12:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2002 12:37 AM
тАО04-18-2002 12:37 AM
Re: can't resolve localhost (!)
example:
hosts: dns [NOTFOUND=continue] files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2002 12:42 AM
тАО04-18-2002 12:42 AM
Re: can't resolve localhost (!)
There are some sample files for nsswitch.conf in /etc dir (nsswitch.*).
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2002 12:49 AM
тАО04-18-2002 12:49 AM
Re: can't resolve localhost (!)
Check your /etc/nsswitch.conf file
for the line beginning "hosts"
This gives the sequence of searching for hosts, and can be edited accoring to your requirements.
In your case, it sounds as if the first entry should be "files" - other options are dns, nis or nisplus
HTH,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2002 12:55 AM
тАО04-18-2002 12:55 AM
Re: can't resolve localhost (!)
problem is solved. used the nsswitch.files and modified the hosts entry as suggested.
thanks a lot, again :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2002 12:59 AM
тАО04-18-2002 12:59 AM
Re: can't resolve localhost (!)
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2002 01:16 AM
тАО04-18-2002 01:16 AM
Re: can't resolve localhost (!)
SAM looks like a very useful tool, thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2002 01:24 AM
тАО04-18-2002 01:24 AM
Re: can't resolve localhost (!)
From the security perspective, I would suggest that you use the following order in /etc/nsswitch.conf:
hosts: files [NOTFOUND=continue] dns
instead of
hosts: dns [NOTFOUND=continue] files
For critical systems, hardcode the host-ip pairing in /etc/hosts. This ensures that even if the DNS server or its records get compromised, you can be assured that you are still connecting to the correct IP addresses of the critical systems.
Such a configuration of files before dns in nsswitch.conf would be applicable in scenerios such as on a web application server connecting to the database server backend to perform queries etc.
Hope this helps. Regards.
Steven Sim Kok Leong