From 4882cb66be8e98bc61a5105372b02a07a65e53fa Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 30 Apr 2024 20:21:12 +0300 Subject: [PATCH] systemd-resolv.conf-generate.bash: who is going to stop me from specifying the same resolver thrice? --- etc/systemd-resolv.conf-generate.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/systemd-resolv.conf-generate.bash b/etc/systemd-resolv.conf-generate.bash index afbbbdcc..0301932e 100755 --- a/etc/systemd-resolv.conf-generate.bash +++ b/etc/systemd-resolv.conf-generate.bash @@ -29,7 +29,7 @@ chmod -v +w /etc/resolv.conf rm -v /etc/resolv.conf # tee -p = operate in a more appropriate MODE with pipes. -printf 'nameserver 127.0.0.53\noptions edns0 trust-ad timeout:1 attempts:5\nsearch .\n' | tee -p /etc/resolv.conf +printf 'nameserver 127.0.0.53\nnameserver 127.0.0.53\nnameserver 127.0.0.53\noptions edns0 trust-ad timeout:1 attempts:5\nsearch .\n' | tee -p /etc/resolv.conf # Remove all other permissions than everyone reading resolv.conf chmod -v a=r /etc/resolv.conf