mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-09 11:52:31 +01:00
systemd-resolv.conf-generate.bash: who is going to stop me from specifying the same resolver thrice?
This commit is contained in:
parent
b9daad6a2f
commit
4882cb66be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user