diff --git a/config/etc/resolv.conf b/config/etc/resolv.conf deleted file mode 100644 index bbc8559..0000000 --- a/config/etc/resolv.conf +++ /dev/null @@ -1 +0,0 @@ -nameserver 127.0.0.1 diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index e3672c3..0c00a19 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -76,12 +76,6 @@ apt-get -y install chrony -### dns - -apt-get -y install unbound - - - ### Docker # has to be executed before the users section, # because otherwise the docker group doesn't exist @@ -121,3 +115,12 @@ apt-get -y install \ traceroute \ tcpdump \ openssh-server + + +### dns + +apt-get -y install unbound + + +# as last step set dns to local +echo 'nameserver 127.0.0.1' > /etc/resolv.conf