yngwie
By:
yngwie

How can I make public DNS server?

February 25, 2015 1.9k views

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 publicip: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

2 comments
  • 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?

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

1 Answer

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/

Have another answer? Share your knowledge.