From 0e56b936b92c44901f9741b30830732a7b845a21 Mon Sep 17 00:00:00 2001 From: lub Date: Mon, 1 Nov 2021 15:34:50 +0100 Subject: [PATCH] move /etc/resolv.conf to the end this prevents dns from breakign during setup --- config/etc/resolv.conf | 1 - post-debootstrap-installer.sh | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 config/etc/resolv.conf 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