[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Timo Juhani Lindfors <timo.lindfors@iki.fi> 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/init.d/bind9 start
fi

to /etc/network/if-up.d/bind9. If we assume that "lo" is the first
interface that is brought up then bind9 gets started after lo has been
brought up but before "br0" has been brought up. This then guarantees
that when "br0" is brought up /etc/network/if-up.d/mountnfs has
working DNS.

A better solution would be appreciated.


Reply to: