03. DNS
DNS
https://en.wikipedia.org/wiki/Domain_Name_System
https://en.wikipedia.org/wiki/List_of_managed_DNS_providers
https://en.wikipedia.org/wiki/OpenNIC
default DNS versus custom DNS
youw default DNS provider = as decided by your ISP
je hoeft niet deze van je internet provider te nemen
Je moet DNS dan zelf configureren
- OpenDNS (now part of cisco) https://www.opendns.com
208.67.222.222 & 208.67.220.220 - cloudfare dns : 1.1.1.1
- google dns 8.8.8.8
- er zijn DNS met respect voor privacy
- vpn providers hebben meestal een eigen dns
change your DNS
sudo xed /etc/network/interfaces
? is puur een doormapping bestand ?
enige regel : source-directory /etc/network/interfaces.d
deze directory is echter leeg
via de LXM network systray applet , kan je ook netwerk instellingen aanpassen
de netwerk disablen en weer enablen
first Ethernet interface is usually eth0
to configure a DNS server, add a line ” dns-nameservers IP_ADDRESS “under the eth0 configuration:
bijvb to use google dns : dns-nameservers 8.8.8.8
to configure multiple DNS servers, add spaces between them:
dns-nameservers IP_ADDRESS1 IP_ADDRESS2 IP_ADDRESS3 …
save the file and exit.
to apply the changes, run :
sudo ifdown eth0
sudo ifup eth0
test the DNS name resolution process by pinging a hostname: ping doorbraak.be
https://wiki.archlinux.org/title/Network_configuration#net-tools :
using DHCP
When using a dynamic IP address, you need DHCP to provide correct ip adresses.
but in addition , DHCP can also configure routing & name servers
home devices that have dhcp as default
If you are using a Wi-FI or a router, for example, at home, you will most likely be using a dynamic IP address. The IP address is assigned by the Wi-Fi or router and it is what your computer should be configured to use.
if your computer is connected to your ISP’s modem, for example, a cable modem, that will also be using a dynamic IP address. Dynamic IP addresses can change each time you turn your computer on. In a work environment you may have a static IP address or a dynamic IP address. At home you can configure your router to always assign your computer the same IP address in which case you are using a static IP address.
alternativen voor DNS
- tor gebruikt .onion
- proxy ( proxy 5 , shadow proxy )