Question

How can I make public DNS server?

  • Posted February 25, 2015

I tried to make public DNS server with bind9, but I only can do requests from localhost. Read lots of articles, but still can’t do it. OS - Ubuntu 14.04, named.conf.options: options { directory “/var/cache/bind”; dnssec-validation no; listen-on { any; }; listen-on port 53 { any; }; allow-query { any; }; allow-recursion { any; }; allow-transfer { none; }; allow-query-cache { none; }; recursion yes;

    auth-nxdomain no;    # conform to RFC1035
    listen-on-v6 { any; };

};

root@p2p:/home/yngwie# netstat -tulpn | grep :53 tcp 0 0 public_ip:53 0.0.0.0:* LISTEN 29693/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 29693/named tcp6 0 0 :::53 :::* LISTEN 29693/named udp 0 0 public_ip:53 0.0.0.0:* 29693/named udp 0 0 127.0.0.1:53 0.0.0.0:* 29693/named udp6 0 0 :::53 :::* 29693/named

Subscribe
Share

I want to set up zone for my domain, to test some third party software, which works a lot with dns queries.

To be clear: You’re looking to set up a zone for a specific domain? or something that will forward/cache requests appropriately to the authoritative servers?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If you only want to test some software, use your computer Hosts file. Also check your ports are open, try this with your droplet http://www.yougetsignal.com/tools/open-ports/