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