This is a discussion on automountd ignores nsswitch? within the comp.unix.solaris forums, part of the Solaris Operating System category; --> I'm trying to setup a very simple automount, and I believe I have the configuration correct. I just have ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm trying to setup a very simple automount, and I believe I have the configuration correct. I just have * host:/export/home/& in /etc/auto_home. The problem is that when trying to contact 'host', automountd is using dns instead of the entry in the hosts file, and so it's not working. I have 'hosts: files dns' in /etc/nsswitch.conf and it works correctly otherwise (e.g. 'ping' goes to the right place). I've verified that it contacts the wrong address, via 'snoop'. Is there some configuration I'm missing, or is this a bug? -frank |
| |||
| Frank Cusack wrote: > I'm trying to setup a very simple automount, and I believe I have the > configuration correct. I just have > > * host:/export/home/& > > in /etc/auto_home. The problem is that when trying to contact 'host', > automountd is using dns instead of the entry in the hosts file, and > so it's not working. I have 'hosts: files dns' in /etc/nsswitch.conf > and it works correctly otherwise (e.g. 'ping' goes to the right place). > I've verified that it contacts the wrong address, via 'snoop'. > > Is there some configuration I'm missing, or is this a bug? > No such bug is known. automounter goes where getent hosts host goes. The many ways of possible automount configuration are sometimes confusing. Also ensure that /etc/nsswitch.conf has automount: files ... Furhter ensure the auto_master (or auto.master) has /home auto_home -- Michael Tosch @ hp : com |
| ||||
| On Sat, 04 Mar 2006 17:35:06 +0100 Michael Tosch <eedmit@NO.eed.SPAM.ericsson.PLS.se> wrote: > Frank Cusack wrote: >> I'm trying to setup a very simple automount, and I believe I have the >> configuration correct. I just have >> * host:/export/home/& >> in /etc/auto_home. The problem is that when trying to contact >> host', >> automountd is using dns instead of the entry in the hosts file, and >> so it's not working. I have 'hosts: files dns' in /etc/nsswitch.conf >> and it works correctly otherwise (e.g. 'ping' goes to the right place). >> I've verified that it contacts the wrong address, via 'snoop'. >> Is there some configuration I'm missing, or is this a bug? >> > > No such bug is known. > automounter goes where > > getent hosts host > > goes. Definitely not happening on my system. getent goes to files (per nsswitch.conf), automount goes to dns. > The many ways of possible automount configuration > are sometimes confusing. > > Also ensure that /etc/nsswitch.conf has > automount: files ... > > Furhter ensure the auto_master (or auto.master) has > /home auto_home yup, got both of those. -frank |