- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/hosts vs dns server
Operating System - HP-UX
1820698
Members
2618
Online
109627
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
Discussions
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО12-19-2002 03:38 PM
тАО12-19-2002 03:38 PM
How can I configure my HP-UX 11.00 system to prefer the /etc/hosts file entries before turning the dns servers?
I have some host names that will not be added to a dns server, but I need them to recognized by a system in its /etc/hosts file. Right now whenever I configure a system to use dns, it outright ignores the /etc/hosts file.
Donald O'Brien.
I have some host names that will not be added to a dns server, but I need them to recognized by a system in its /etc/hosts file. Right now whenever I configure a system to use dns, it outright ignores the /etc/hosts file.
Donald O'Brien.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 03:43 PM
тАО12-19-2002 03:43 PM
Solution
Hi Donald:
In your '/etc/nsswitch.conf' file put this line:
hosts: files [NOTFOUND=continue] dns
Now, create an 'etc/resolv.conf' file like:
domain xxx.com
nameserver 10.101.102.103
No reboot is necessary. Use 'nslookup' to verify.
Regards!
...JRF...
In your '/etc/nsswitch.conf' file put this line:
hosts: files [NOTFOUND=continue] dns
Now, create an 'etc/resolv.conf' file like:
domain xxx.com
nameserver 10.101.102.103
No reboot is necessary. Use 'nslookup' to verify.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 03:51 PM
тАО12-19-2002 03:51 PM
Re: /etc/hosts vs dns server
Hi Donald,
If you want your server to look at /etc/hosts before DNS just edit /etc/nsswitch.conf file (if not there create one) and add a line called:
hosts: files [NOTFOUND=continue] dns
That should work.
Rajeev
If you want your server to look at /etc/hosts before DNS just edit /etc/nsswitch.conf file (if not there create one) and add a line called:
hosts: files [NOTFOUND=continue] dns
That should work.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 03:56 PM
тАО12-19-2002 03:56 PM
Re: /etc/hosts vs dns server
Thanks! This worked like a charm.
Donald O'Brien.
Donald O'Brien.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP