Question

How can I make public DNS server?

Posted February 25, 2015 4.3k 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

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.

×
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/

Submit an Answer