- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- update to /etc/nsswitch.conf
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
тАО05-20-2002 11:35 PM
тАО05-20-2002 11:35 PM
update to /etc/nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2002 11:46 PM
тАО05-20-2002 11:46 PM
Re: update to /etc/nsswitch.conf
Make sure that you resolve first from your
/etc/hosts file.
contents of /etc/resolv.conf
domain mydomain.com
nameserver 10.53.100.2
nameserver 10.53.100.2
# more /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return] dns [NOTFO
UND=return UNAVAIL=continue TRYAGAIN=return]
To test startusing 'nslookup' that is certainly included in your /etc/hosts file.
HTH
~Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2002 11:52 PM
тАО05-20-2002 11:52 PM
Re: update to /etc/nsswitch.conf
using the old configuration.
You may have to kill the old processes and restart them, if you dont want to reboot.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 12:53 AM
тАО05-21-2002 12:53 AM
Re: update to /etc/nsswitch.conf
From man switch
EXAMPLES
An example of a valid name service switch entry is:
hosts : dns [NOTFOUND=continue UNAVAIL=return TRYAGAIN=continue] files
Just reverse the dns and files so dns is second choice.
The defaults are
cat /usr/newconfig/etc/nsswitch.conf
#
# /etc/nsswitch.conf
#
# This is the default configuration file for the name service switch.
# It will cause behavior similar to that performed on prior HP-UX
# releases when a configurable name service algorithm was not provided.
#
# If the /etc/nsswitch.conf file is not present, it will default to the
# behavior represented by the ordering and conditions below.
#
# See the Adminstering Internet Services Manual and the switch(4) man
# page for more information on the name service switch.
#
hosts: dns nis files
services: nis files
protocols: nis files
networks: nis files
rpc: nis files
netgroup: nis files
automount: nis files
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 01:03 AM
тАО05-21-2002 01:03 AM
Re: update to /etc/nsswitch.conf
1. Check permissions on /etc/nsswitch.conf, should be 444.
2. From the man page for nsswitch.conf:
WARNINGS
Within each process that uses nsswitch.conf(), the entire file is read
only once. If the file is later changed, the process will continue
using the old configuration.
Have the processes that cannot be resolved been restarted?
3. Also can you post your nsswitch.conf file?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 01:15 AM
тАО05-21-2002 01:15 AM
Re: update to /etc/nsswitch.conf
To verify that you have the /etc/nsswitch.conf configuration and permissions correct, login to the user (that has problems resolving the IP address) and perform this:
# nslookup
> policy
This will show the configured name resolution policy (i.e. order of using files, dns, nis etc in the resolution).
Hope this helps. Regards.
Steven Sim Kok Leong