You are not logged in.

#1 2012-08-24 08:02:22

ben-arch
Member
Registered: 2005-12-17
Posts: 120

autofs (with nfsv4) "mounting" all my HOSTS file entries

Hi

Just built an Arch based NAS with nfs and autofs on the client(s) (aslo Arch machines).  No problems.

But there's a strane behaviour by autofs :

I'm using my HOSTS file as a basic site blocking tool so my HOSTS file looks like

127.0.0.1           localhost.mydomain       localhost       ben
::1                     localhost.mydomain       localhost       ben
192.168.168.110 nas.mydomain               nas             nas

#start of lines added by WinHelp2002
# [Misc A - Z]
127.0.0.1  fr.a2dfp.net
127.0.0.1  m.fr.a2dfp.net
127.0.0.1  ad.a8.net
127.0.0.1  asy.a8ww.net
127.0.0.1  abcstats.com
127.0.0.1  a.abv.bg
127.0.0.1  adserver.abv.bg
127.0.0.1  adv.abv.bg
127.0.0.1  bimg.abv.bg
(... many more such lines here)

Now, when  I ls /net (where autofs mounts it's shares), I'm getting :

005.free-counter.co.uk
006.free-counter.co.uk
007.free-counter.co.uk
008.free-counter.co.uk
008.free-counters.co.uk
00fun.com
011707160008.c.mystat-in.net
032439.com
061606084448.c.mystat-in.net
070806142521.c.mystat-in.net
090906042103.c.mystat-in.net
092706152958.c.mystat-in.net
0d7292.r.axf8.net
(... many more such lines here)

In short - all sites in the HOSTS are "mounted".  (The nas shares are also mounted and usable).

Any ideas how I can prevent autofs from mounting all my HOSTS definitions will be appreciated.

Ben

Offline

Board footer

Powered by FluxBB