- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nsswitch.conf configuration
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
тАО12-04-2009 07:30 AM
тАО12-04-2009 07:30 AM
nsswitch.conf configuration
1. From which file, the system getting the default configuration without the /etc/nsswitch.conf file ?
2. I just want to alter hosts lookup as
hosts files dns nis
Can I just create a nsswitch.conf file with only the above line there? I don't want to alter any other default settings in the system to avoid any possible errors. If I don't define the group, password , protocols etc etc, in /etc/nsswitch.conf file, will system work fine the new hosts information from /etc/nsswitch.conf and the existing default settings from somewhere?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 07:36 AM
тАО12-04-2009 07:36 AM
Re: nsswitch.conf configuration
You have to select the flavor you want. For example:
# cp -p /etc/nsswitch.files /etc/nsswitch.conf
Then, you might modify the "hosts" line to look like:
hosts: files [NOTFOUND=continue] dns
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 07:37 AM
тАО12-04-2009 07:37 AM
Re: nsswitch.conf configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 07:47 AM
тАО12-04-2009 07:47 AM
Re: nsswitch.conf configuration
I would copy an appropriate template. See:
http://www.docs.hp.com/en/B3921-60631/nsswitch.conf.4.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 07:50 AM
тАО12-04-2009 07:50 AM
Re: nsswitch.conf configuration
Accordingly I can edit the templates?
From where the system is getting the default information without nsswitch.conf file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 07:56 AM
тАО12-04-2009 07:56 AM
Re: nsswitch.conf configuration
You can find some defaults files under: /usr/newconfig/etc
or you just find examples for with the right syntax using man nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 08:01 AM
тАО12-04-2009 08:01 AM
Re: nsswitch.conf configuration
'itayha' is correct. Use the /usr/newconfig/etc/nsswitch.conf default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 08:02 AM
тАО12-04-2009 08:02 AM
Re: nsswitch.conf configuration
> How I know what are my current default setup?
Accordingly I can edit the templates?
From where the system is getting the default information without nsswitch.conf file?
If you take a few minutes and read the manpages I cited you will note that they say, "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:..."
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 08:03 AM
тАО12-04-2009 08:03 AM
Re: nsswitch.conf configuration
if you do not have nsswitch.conf file present on your system but for you system default location to search is files only in other word
no nsswitch.conf = nsswitch.conf with content of nsswitch.files
Javed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2009 08:32 AM
тАО12-04-2009 08:32 AM
Re: nsswitch.conf configuration
James,
The link has the below information.
"
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:
hosts:
dns [NOTFOUND=return] nis [NOTFOUND=return] files
etc
"
It doesn't look like the system default setup.
My system is behaving differntly. As per the above setup host lookup should stop at dns as it has NOTFOUND=return there.
@/usr/newconfig/etc>nslookup aa
Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "aa"
@/usr/newconfig/etc>
dns [NOTFOUND=return] nis [NOTFOUND=return] files >
@/usr/newconfig/etc>cp nsswitch.hp_defaults /etc/nsswitch.conf
@/usr/newconfig/etc>nslookup aa
Trying DNS
*** can't find aa: Non-existent domain
ricr3tst@/usr/newconfig/etc>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2009 05:18 AM
тАО12-05-2009 05:18 AM
Re: nsswitch.conf configuration
could have taken a help from
man 4 nsswitch.conf
passwd: files nis
group: files nis
hosts: 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
automount: files nis
aliases: files nis
services: files nis
sendmailvars: files
ipnodes: files
regards