diff --git a/precise/host/hooks/install.d/80-dns-waterfall.sh b/precise/host/hooks/install.d/80-dns-waterfall.sh index 817ed52..847d705 100755 --- a/precise/host/hooks/install.d/80-dns-waterfall.sh +++ b/precise/host/hooks/install.d/80-dns-waterfall.sh @@ -8,7 +8,7 @@ HOST_EXTERNAL_DEVICE=${HOST_EXTERNAL_DEVICE:-eth0} -apt-get install -y bind9 dnsmasq +apt-get install -y bind9 dnsmasq bind9-host > /etc/default/lxc sed -ri "s%10\.0\.3\.%$LXC_NETWORK.%g;s%^#LXC_DHCP_CONFILE=%LXC_DHCP_CONFILE=%g" /etc/default/lxc-net @@ -47,11 +47,15 @@ no-resolv mkdir /var/log/named -p && chown bind:bind /var/log/named -/etc/init.d/bind9 restart -/etc/init.d/dnsmasq restart +/etc/init.d/bind9 stop +/etc/init.d/dnsmasq stop + service lxc restart service lxc-net restart ## had to 'brctl delbr lxcbr0' myself +/etc/init.d/bind9 start +/etc/init.d/dnsmasq start + cp /etc/resolv.conf{,.orig} cat < /etc/resolv.conf nameserver 127.0.0.1