Tuyen D. Le September 03, 2023 [Server] #dns
- Load Distribution: Has web cache, saves frequently accessed information
- Domain: foo.com, Hostname: relays.foo.com
- FQDN: Fully qualified domain name
- Types of DNS: A, MX, NS, Alias
- DNS Zone: record includes its name and IP address
$ sudo nano /etc/network/interfaces
dns-nameservers 10.10.10.12 8.8.8.8
$ vi /etc/resolv.conf
nameserver 8.8.4.4
$ sudo /etc/init.d/networking restart
nmcli device show <interfacename> | grep IP4.DNS nmcli dev list iface <interfacename> | grep IP4
$ sudo vi /etc/hosts
127.0.1.1 mypc
10.10.10.94 example.com
$ sudo service network-manager restart
$ sudo service networking restart
ldtuyen@pc:~$ apt-cache search nslookup
ldtuyen@pc:~$
ldtuyen@pc:~$ sudo apt-get install dnsutils