- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Why does not remshd use the nsswitch.conf 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
04-03-2007 09:49 PM
04-03-2007 09:49 PM
Why does not remshd use the nsswitch.conf configuration?
The nsswitch.conf file looks like this (only holds one entry) on host A:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
Using nsquery on hostA to find the hostname of hostB show that the nsswitch.conf file is used correctly - /etc/hosts is queried and returns the right information (both forward and reverse).
BUT: using rcp on hostB to copy to hostA returns the following in the syslog at hostA:
"remshd[27762]: Couldn't look up address for hostX"
Why has remshd used the dns entry when there is a valid entry in /etc/hosts and the hosts file has precedence over DNS according to the nsswitch.conf file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 10:14 PM
04-03-2007 10:14 PM
Re: Why does not remshd use the nsswitch.conf configuration?
This is probably because the DNS servers configured in your central DNS servers do not support short names. The default is to require FDQN, fully qualified domain names.
When you try hostX.your.net you will probably get an answer if /etc/resolv.conf points to a valid DNS server at all.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 11:49 PM
04-03-2007 11:49 PM
Re: Why does not remshd use the nsswitch.conf configuration?
Why would even remshd query the DNS? According to nsswitch.conf it will not contiue if it finds a host in /etc/hosts, so why does it query DNS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 12:33 AM
04-04-2007 12:33 AM
Re: Why does not remshd use the nsswitch.conf configuration?
Are you using autofs or automounter.
If you have tusc or trace just try the commands with it
trace nslookup (nsquery) hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 02:58 PM
04-04-2007 02:58 PM
Re: Why does not remshd use the nsswitch.conf configuration?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 09:14 PM
04-04-2007 09:14 PM
Re: Why does not remshd use the nsswitch.conf configuration?
Yes we are using automount. Do you know any related problems with this service? Unfortunatley I will not be able to use trace or install it, and I am not sure what you are getting at? nsquery and nslookup worked fine - they did get the hostname from /etc/hosts as expected.
Bill,
Yes that might very well be a workaround. But the question is why remshd queried the DNS and did not use the setting from /etc/hosts as expected.
The original problem was solved by removing the erroneous DNS record hostX, but the question why remshd queried the DNS server in the first place remains.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2007 11:40 PM
04-06-2007 11:40 PM
Re: Why does not remshd use the nsswitch.conf configuration?
But I still remember the box was using automounter and this problem I had had something to do with the automounter and of course the name service switch.
I meant to use trace or tusc with the remsh and the other r commands so that you might probably end up to find the possible cause.