Build an openDNS recursive resolver DNS using Bind Rumi, December 18, 2021August 9, 2023 It’s a small thing, but someone might feel it to be useful of running a public DNS like google has 8.8.8.8. You actually can build a recursive DNS and serve to the world (instead to your network user only! 🙂 ) Install Bind apt install bind9 bind9utils -y It’s pretty simple, all you need is the have your bind package installed and some very basic configurations like below- nano /etc/bind/named.conf include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; nano /etc/bind/named.conf.options options { directory "/var/cache/bind"; dnssec-validation auto; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; allow-query { any; }; allow-recursion { any; }; allow-query-cache { any; }; // additional-from-cache { any }; rate-limit { responses-per-second 500; }; }; Keep the other 2 configuration files as it is. Restart bind/named services. Point your laptop Ethernet DNS1 configuration with the server IP, if everything’s a’right, you should be able to browse sites. If you don’t- check if any firewall or rule is blocking port 53 both TCP and UDP are open. Now let’s Test: You can open up a browser and go to http://myresolver.info and it will output your public IP address and what DNS recursive resolver you seem to be using. Administrations Configurations (Linux) BindDNSNamedPublic DNSRecursvive