- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- nsswitch.conf configuration
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
nsswitch.conf configuration
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 07:30 AM
12-04-2009 07:30 AM
nsswitch.conf configuration
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 07:36 AM
12-04-2009 07:36 AM
Re: nsswitch.conf configuration
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 07:37 AM
12-04-2009 07:37 AM
Re: nsswitch.conf configuration
Re: nsswitch.conf configuration
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 07:47 AM
12-04-2009 07:47 AM
Re: nsswitch.conf configuration
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 07:50 AM
12-04-2009 07:50 AM
Re: nsswitch.conf configuration
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 07:56 AM
12-04-2009 07:56 AM
Re: nsswitch.conf configuration
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 08:01 AM
12-04-2009 08:01 AM
Re: nsswitch.conf configuration
Re: nsswitch.conf configuration
'itayha' is correct. Use the /usr/newconfig/etc/nsswitch.conf default.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 08:02 AM
12-04-2009 08:02 AM
Re: nsswitch.conf configuration
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 08:03 AM
12-04-2009 08:03 AM
Re: nsswitch.conf configuration
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-2009 08:32 AM
12-04-2009 08:32 AM
Re: nsswitch.conf configuration
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-05-2009 05:18 AM
12-05-2009 05:18 AM
Re: nsswitch.conf configuration
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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP