- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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-30-2006 04:53 PM
06-30-2006 04:53 PM
I don't see nsswitch.conf file in /etc/ for hostname resolution order.
I see only below mentioned files:
nsswitch.compat
nsswitch.files
nsswitch.hp_defaults
nsswitch.nis
nsswitch.nisplus
Can anyone suggest why nsswitch.conf doesn't exist here ?
Does HPUX resolves hostnames using file other than "nsswitch.conf" ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2006 07:56 PM
06-30-2006 07:56 PM
Re: nsswitch.conf
These files are examples for different NIS types resolution orders. Look at the files and copy the nearest to your requirements to /etc/nsswitch.conf.
I usually copy nsswitch.files and add dns to name resolution and, when needed, nis to passwd and group in needed order.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2006 01:38 AM
07-01-2006 01:38 AM
Re: nsswitch.conf
The system will work of the local files (hosts, passwords, group, etc) if there is no nsswitch.conf.
the nsswirch.conf file is used when you want a remote server to handle a named service resolution.
If yu want to use a nsswitch.conf file chose the example file closest to your configuration and copy it to nsswitch.conf. Then modify it as neccessary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2006 11:29 AM
07-01-2006 11:29 AM
Solutionwill tell you a lot of the details. You don't need the nsswitch.conf file if you only use /etc/hosts, or if you only use DNS (the /etc/resolv.conf file). Use nsswitch.conf when you need to be more precide about the order of hostname resolution.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2006 11:48 AM
07-01-2006 11:48 AM
Re: nsswitch.conf
Should we use nsswitch.conf or not and what is the best practice for this ?
What is your recommendation ?
Thank,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2006 12:02 PM
07-01-2006 12:02 PM
Re: nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2006 01:17 PM
07-01-2006 01:17 PM
Re: nsswitch.conf
passwd: files
group: files
hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files
This allows you to put a few production systems or printers into /etc/hosts if needed.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 06:09 PM
07-02-2006 06:09 PM
Re: nsswitch.conf
Reply is Inline,
Should we use nsswitch.conf or not and what is the best practice for this ?
What is your recommendation ?
A)The operating system uses a number of "databases" of information about hosts, users (passwd), groups and so forth. Data for these can come from a variety of sources: host-names and -addresses, for example, may be found in /etc/hosts, NIS, NIS+, LDAP or DNS. One or more sources may be used for each database; the sources and their lookup order are specified in the /etc/nsswitch.conf file.
As Bill mentioned in case you are usiing "/etc/hosts" (file) or "/etc/resolv.conf" (DNS Server) for Name resolution then there is no need for this file. But you can definitely give ur First preference for name resolution via this file.
The library functions contain compiled-in default entries that are used if the appropriate entry in nsswitch.conf is absent or syntactically incorrect. The entries are as follows:
passwd: files nis
group: files nis
hosts: dns [NOTFOUND=return] nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: nis [NOTFOUND=return] files
ipnodes: dns [NOTFOUND = return] files
-Amit