Browse Source

new: [host] add explicit installation of ``bind9``

This is required in debian 10

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
pull/1/head
Valentin Lab 4 years ago
parent
commit
deea56bd50
  1. 10
      precise/host/hooks/install.d/80-dns-waterfall.sh

10
precise/host/hooks/install.d/80-dns-waterfall.sh

@ -8,7 +8,7 @@
HOST_EXTERNAL_DEVICE=${HOST_EXTERNAL_DEVICE:-eth0} HOST_EXTERNAL_DEVICE=${HOST_EXTERNAL_DEVICE:-eth0}
apt-get install -y bind9 dnsmasq
apt-get install -y bind9 dnsmasq bind9-host </dev/null
echo HOST_EXTERNAL_DEVICE="$HOST_EXTERNAL_DEVICE" >> /etc/default/lxc echo HOST_EXTERNAL_DEVICE="$HOST_EXTERNAL_DEVICE" >> /etc/default/lxc
sed -ri "s%10\.0\.3\.%$LXC_NETWORK.%g;s%^#LXC_DHCP_CONFILE=%LXC_DHCP_CONFILE=%g" /etc/default/lxc-net 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 && mkdir /var/log/named -p &&
chown bind:bind /var/log/named 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 restart
service lxc-net restart ## had to 'brctl delbr lxcbr0' myself 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} cp /etc/resolv.conf{,.orig}
cat <<EOF > /etc/resolv.conf cat <<EOF > /etc/resolv.conf
nameserver 127.0.0.1 nameserver 127.0.0.1

Loading…
Cancel
Save