Question
How can I make public DNS server?
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 publicip: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
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.
×
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.