- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/hosts fisrt, after DNS
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
Forums
Discussions
Discussions
Discussions
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
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
06-10-2002 01:26 AM
06-10-2002 01:26 AM
/etc/hosts fisrt, after DNS
I dont now if it was a solution for a big late that I have with when I use this DNS configuration
#cat /etc/resolv.conf
domain DOM.com
nameserver 10.1.2.3 #Primary
nameserver 10.1.2.4 #Secondary
Thanks fo all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 01:28 AM
06-10-2002 01:28 AM
Re: /etc/hosts fisrt, after DNS
In /etc/nsswitch.conf,
hosts: files [NOTFOUND=continue] dns
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 01:31 AM
06-10-2002 01:31 AM
Re: /etc/hosts fisrt, after DNS
create /etc/nsswitch.conf file with a single line.
hosts: files [NOTFOUND=continue] dns
Have your resolv.conf as usual. This setup will
serve your purpose.
#man nsswitch.conf
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 01:35 AM
06-10-2002 01:35 AM
Re: /etc/hosts fisrt, after DNS
Ur /etc/nsswitch.conf can be like this
hosts: files [NOTFOUND=continue, TRYAGAIN=continue] dns nis
Normally this file will be there.. U will have to just edit only...
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 03:04 AM
06-10-2002 03:04 AM
Re: /etc/hosts fisrt, after DNS
In your /etc/nsswitch.conf file try this entry,
hosts: files [NOTFOUND=continue] dns
then try,
nslookup
> server_name (exist in /etc/hosts)
> server_name (does not exist in /etc/hosts /exists in DNS)
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 04:17 AM
06-10-2002 04:17 AM
Re: /etc/hosts fisrt, after DNS
#
hosts: dns [NOTFOUND=continue] files
it's wrong config I taink..
I must switch like you have explaining
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:27 AM
06-10-2002 05:27 AM
Re: /etc/hosts fisrt, after DNS
You're right - as you've shown your nsswitch file, DNS would be tried first and, only if the DNS lookup failed, the hosts file would be consulted next.
Good Luck,
Pete
Pete