Install Bind DNS on Ubuntu 22.10 with edits to interfaces: ============================================================ This will set up bind DNS server so I can use this as my local dns server. 1. I must have a static IP address. Also recommended to set DHCP reserved address for this device. 2. sudo apt-get install bind9 dnsutils 3. Edit: sudo nano /etc/bind/named.conf.options, enable the forwarders section, and add your preferred DNS servers: ----------------------- forwarders { 9.9.9.9; 2620:fe::fe; }; -------------------------- Use Ctril + X to save/close. 4. sudo service bind9 restart 5. Can test bind server by: dig -x 127.0.0.1 and nslookup www.nintendo.com 6. You can now set clients to your server and it will have dns with ipv4 & ipv6 with nssec-validation. 7. If you want local hosts to use this, you will need to edit the /etc/netplan/00-installer-config.yaml file and replace all of it to this (with your systems and network ipv4 and ipv6 address got form ifconfig) Keep the name severs as the loopback addresses.. --------------------------------------------- network: ethernets: enp3s0: addresses: - 192.168.0.29/24 - "fddd:1194:1194:1194::1/64" routes: - to: default via: 192.168.0.1 - to: default via: ::/0 nameservers: addresses: - 172.0.0.1 - "::1" version: 2 --------------------------------------- and save it! Then use command: sudo netplan generate to apply new interfaces!. Also run sudo resolvconf -d enp3s0 sudo resolvconf -a enp3s0 to update your dns list! 8. If you have OpenVPN server, edit its settings file (/etc/openvpn/server/server.conf) and replace the the dns optijnns with these: push "dhcp-option DNS 172.0.0.1" push "dhcp-option DNS ::1" and then sudo systemctl restart openvpn to apply it. 9. Also if you are using pi hole, add the link local addresses to the dns source list!. Sources: https://linuxconcept.com/installing-the-dns-server-on-ubuntu/ https://serverfault.com/questions/573465/what-is-an-open-dns-resolver-and-how-can-i-protect-my-server-from-being-misused https://stackoverflow.com/questions/19432026/how-do-i-edit-resolv-conf https://unix.stackexchange.com/questions/618683/change-resolv-conf https://askubuntu.com/questions/1128536/how-to-make-persistent-changes-to-etc-resolv-conf-ubuntu-18-10 https://www.cisco.com/c/en/us/support/docs/ip/ip-version-6-ipv6/113328-ipv6-lla.html https://askubuntu.com/questions/1042582/how-to-set-default-route-with-netplan-ubuntu-18-04-server-2-nic https://www.linode.com/community/questions/22917/gateway4gateway-6-are-deprecated-how-do-i-configure-a-64-ipv6-range https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-configure-networking-in-ubuntu-20-04-with-netplan/ Date: February 15th 2023