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 22.214.171.124 nameserver 126.96.36.199
(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 188.8.131.52" > /etc/resolv.conf echo "nameserver 184.108.40.206" >> /etc/resolv.conf
It does not work and I have no Internet-Connection at all.