I want to connect to a public DNS Server (in this case Google's) by modifying the
/etc/resolv.conf (which is automatically generated by NetworkManager). If I edit the content of the file via
gedit /etc/resolv.conf to
nameserver 184.108.40.206 nameserver 220.127.116.11
(which are the IPs of Google's public DNS server), everything works fine and I do not even have DNS leaks, but if I run my Script:
#!/bin/sh echo "nameserver 18.104.22.168" > /etc/resolv.conf echo "nameserver 22.214.171.124" >> /etc/resolv.conf
It does not work and I have no Internet-Connection at all.