Your browser is the first exposed.
Another good solution is to use the Tor Browser which is based on Firefox and pre-configured with the best settings for your privacy and uses the Tor network by default. No technical knowledge is required.
If you are using a public computer I recommend you Tails.
Alternatives to well known spied systems:
The content of my
/etc/hosts file is based on this very good example.
Choose the Domain Name Server you want to use.
Probably the best solution. Lets you add your DNS servers with a higher priority than the DNS servers provided by the DHCP.
resolvconf is a set of scripts and hooks managing DNS resolution.
The configuration of the internet connection is specified in the file
/etc/resolvconf. It is possible to edit this file, but any change manually done will be lost as it gets overwritten next time something triggers resolvconf.
A solution is to use the file
/etc/resolvconf/resolv.conf.d/head in order to ensure a DNS server is always the first one in the list.
# apt-get install resolvconf # cat /etc/resolvconf/resolv.conf.d/head # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # French Data Network DNS resolvers nameserver 22.214.171.124 nameserver 126.96.36.199 # resolvconf -u
If your interface is configured statically then you can change your DNS by this manner:
# vim /etc/network/interfaces
Add this section:
iface eth0 inet static address 192.168.1.11 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 188.8.131.52 184.108.40.206
Restart the interface and check:
# ifdown eth0 # ifup eth0 # exit $ nslookup cedricbonhomme.org Server: 220.127.116.11 Address: 18.104.22.168#53
An alternative is to use the NetworkManager.