add fqdn to hosts file

fixes #4
master
lub 2 years ago
parent 20909b75d2
commit 2961ca6db5

@ -0,0 +1,4 @@
127.0.0.1 localhost %fqdn%
::1 localhost ip6-localhost ip6-loopback %fqdn%
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

@ -127,6 +127,8 @@ apt-get -y --purge autoremove
apt-get -y install unbound apt-get -y install unbound
# add fqdn to hosts file to mitigate nameserver failure
sed -i "s/%fqdn%/$(hostname)/g" /etc/hosts
# as last step set dns to local, # as last step set dns to local,
# as unbound isn't running in the live/rescue system chroot, # as unbound isn't running in the live/rescue system chroot,

Loading…
Cancel
Save