Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

//include "/etc/bind/named.conf.

options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

// Set up our personal DNS resolver


options {
directory "/var/cache/bind";
dnssec-validation auto;
auth-nxdomain no;

// Either replace 'any' with a list of IPs you allow requests from, or add firewall rules
allow-recursion { 103.52.170.0/23; };
allow-query-cache { 103.52.170.0/23; };
allow-query { 103.52.170.0/23; };

listen-on port 53 {
127.0.0.1;
1.2.3.4;
};
listen-on-v6 port 53 {
::1;
1:2:3:4;
}
};

logging {
channel default_file {
file "/var/log/bind/default.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};

channel general_file {
file "/var/log/bind/general.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};

channel queries_file {
file "/var/log/bind/queries.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
category default { default_file; };
category general { general_file; };
// Comment out the line below to enable logging all requests
// category queries { queries_file; };
};

You might also like