„resolved-script.sh“ hinzufügen

master
lukey 3 years ago
parent 8fe9fcd2f6
commit 5aee7d32c2
  1. 27
      resolved-script.sh

@ -0,0 +1,27 @@
#!/bin/bash
echo -e "\n\e[92mDisabling systemd-resolved and rewritring /etc/resolv.conf...\e[39m"
systemctl stop systemd-resolved
systemctl disable systemd-resolved
cd /etc
rm resolv.conf
printf "
nameserver 2a01:367:5302::5353
nameserver 2a01:367:5302::5454
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844
nameserver 152.89.246.9
nameserver 152.89.246.21
nameserver 160.20.144.53
nameserver 1.1.1.1
nameserver 8.8.8.8
" >> /etc/resolv.conf
echo -e "\e[39mDone. Please restart.\e[39m"
Loading…
Cancel
Save