Re: insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Sven Joachim
On 2010-08-06 10:01 +0200, Timo Juhani Lindfors wrote: > With > > nfs:/home /home nfs defaults0 0 > > in /etc/fstab I get > > mount.nfs: Failed to resolve server nfs: Temporary failure in name resolution > > on boot. This is because I use local bind9 and /etc/reso

Re: insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Camaleón
On Fri, 06 Aug 2010 15:22:19 +0300, Timo Juhani Lindfors wrote: > Camaleón writes: >> So we are doing something wrong here. > > It seems that /etc/init.d/mountnfs.sh does not actually call mount, it > is done by > > /etc/network/if-up.d/mountnfs > > when a network interface is brought up. > >

Re: insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Timo Juhani Lindfors
Timo Juhani Lindfors writes: > Should I try starting bind9 before network is brought up? That sounds > very counter-intuitive. Replying to myself here: this fails since bind9 says "no networks configured". A hack that works for now seems to be to add if [ "$(pidof named)" = "" ]; then /etc/i

Re: insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Timo Juhani Lindfors
Camaleón writes: > So we are doing something wrong here. It seems that /etc/init.d/mountnfs.sh does not actually call mount, it is done by /etc/network/if-up.d/mountnfs when a network interface is brought up. Should I try starting bind9 before network is brought up? That sounds very counter-in

Re: insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Timo Juhani Lindfors
Camaleón writes: > Did you read the manual or the docs for insserv? Maybe we are missing some > step to fully populate the new boot sequence :-? I did try but the man page does not really mention when symlinks are created. For example $ echo /etc/rc*/*bind9 /etc/rc0.d/K02bind9 /etc/rc1.d/K02bin

Re: insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Camaleón
On Fri, 06 Aug 2010 12:52:11 +0300, Timo Juhani Lindfors wrote: > Camaleón writes: >> $named bind9 > > Thanks for the effort but this does not seem to be enough: > > $ grep -Ev "(^#|^$)" /etc/insserv.conf (...) > $named +named +dnsmasq +lwresd bind9 $network > $remote_fs

Re: insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Timo Juhani Lindfors
Camaleón writes: > $namedbind9 Thanks for the effort but this does not seem to be enough: $ grep -Ev "(^#|^$)" /etc/insserv.conf $local_fs +mountall +mountoverflowtmp +umountfs $network+networking +ifupdown $named +named +dnsmasq +lwresd bind9 $network $remote_fs

Re: insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Camaleón
On Fri, 06 Aug 2010 11:01:01 +0300, Timo Juhani Lindfors wrote: (...) > I tried adding " bind9" to the $remote_fs line of /etc/insserv.conf but > got > > $ sudo insserv --dryrun > insserv: There is a loop between service bind9 and rsyslog if started > insserv: loop involving service rsyslog at

insserv: /home on NFS and local bind (DNS lookups fail on boot)

2010-08-06 Thread Timo Juhani Lindfors
With nfs:/home /home nfs defaults0 0 in /etc/fstab I get mount.nfs: Failed to resolve server nfs: Temporary failure in name resolution on boot. This is because I use local bind9 and /etc/resolv.conf has nameserver 127.0.0.1 I tried adding " bind9" to the $rem