45 lines
920 B
Text
45 lines
920 B
Text
// vim:set ts=4 sw=4 et:
|
|
|
|
options {
|
|
directory "/var/named";
|
|
pid-file "/run/named/named.pid";
|
|
|
|
// Uncomment these to enable IPv6 connections support
|
|
// IPv4 will still work:
|
|
// listen-on-v6 { any; };
|
|
// Add this for no IPv4:
|
|
listen-on port 53 { 127.0.0.1; 186.64.123.31; };
|
|
|
|
allow-recursion { any; };
|
|
allow-query-cache { any; };
|
|
allow-query { any; };
|
|
allow-transfer { none; };
|
|
|
|
max-cache-ttl 30;
|
|
max-ncache-ttl 30;
|
|
|
|
// version none;
|
|
// hostname none;
|
|
// server-id none;
|
|
recursion yes;
|
|
querylog yes;
|
|
|
|
# DNSSEC disabled because the main purpose is to use it behind
|
|
# this server DoT, dns.zzls.xyz=186.64.123.31
|
|
dnssec-validation no;
|
|
};
|
|
|
|
zone "localhost" IN {
|
|
type master;
|
|
file "localhost.zone";
|
|
};
|
|
|
|
zone "0.0.127.in-addr.arpa" IN {
|
|
type master;
|
|
file "127.0.0.zone";
|
|
};
|
|
|
|
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
|
|
type master;
|
|
file "localhost.ip6.zone";
|
|
};
|