You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
509 B
27 lines
509 B
4 years ago
|
#!/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"
|