From 299eaa8d8d982c2d0a1e3e0f24d1dba84698d5a9 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 6 Nov 2024 14:09:59 +0200 Subject: [PATCH] etc/resolv.conf-generate.bash: fix order --- etc/resolv.conf-generate.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/resolv.conf-generate.bash b/etc/resolv.conf-generate.bash index 2b504c16..346fd317 100755 --- a/etc/resolv.conf-generate.bash +++ b/etc/resolv.conf-generate.bash @@ -17,7 +17,7 @@ rm -v /etc/resolv.conf # Actual resolv.conf creation. OK, this could read resolv.conf in this # directory, but I like this being self-contained. # tee -p = operate in a more appropriate MODE with pipes. -printf 'nameserver 127.0.0.53\nnameserver 127.0.0.1\nnameserver ::1\nsearch .\noptions timeout:1 attempts:5 rotate edns0 trust-ad\n' | tee -p /etc/resolv.conf +printf 'nameserver ::1\nnameserver 127.0.0.1\nnameserver 127.0.0.53\nsearch .\noptions timeout:1 attempts:5 rotate edns0 trust-ad\n' | tee -p /etc/resolv.conf # Remove all other permissions than everyone reading resolv.conf chmod -v a=r /etc/resolv.conf