Build an openDNS recursive resolver DNS using Bind

It’s a small thing, but someone might feel it to be useful of running a public DNS like google has You actually can build a recursive DNS and serve to the world (instead to your network user only! 🙂 )

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 and it will output your public IP address and what DNS recursive resolver you seem to be using.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.