– disable DNS hijacking
– change DNS server
– setting up google as DNS server
What is DNS hijacking ?
– DNS redirecting
Why don’t I want it ?
– When I but a url that is not recognized it gets redirected to ads
– It interferes with avahi-daemon (zeroconf)
How do I know its occurring ?
– by typing a non existing url in the browser
– ping a non existing url
– in windows by running nslookup in the command line and seeing a foreign ip address
How to stop it ?
– setting up a specific router (http://hackercodex.com/guide/how-to-stop-isp-dns-server-hijacking/)
– or changing your computer dns server (https://developers.google.com/speed/public-dns/docs/using)
– use QuickSetDNS
– in windows command line running ipconfig /all will show what dns server you’re running
You will need to edit the ‘/etc/resolv.conf’ with the nameserver of your choice. You can manually edit it (without restarting anything) and have it work however it you restart you computer it will be overwritten by resolvconf. To avoid the overwriting you need to edit ‘/etc/resolvconf/resolv.conf.d/head’ instead. Now if you cannot find that file you will need to update ‘resolvconf’ by running ‘$ apt-get install resolvconf’ (had to do it for raspberry pi). source
To force resolvconf to update /etc/resolv.conf run
$ sudo resolvconf -u
Another ‘not a good idea’ option is to use ‘$ chattr +i’ to lock down ‘resolv.conf’ which seems hacky
bright house network