This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
homeserver-ansible/roles/networking/nameserver/templates/named.conf.j2

40 lines
796 B
Plaintext
Raw Permalink Normal View History

2022-02-27 16:05:34 -05:00
// vim:set ts=4 sw=4 et:
acl internals { 127.0.0.0/8; {{ local_subnet }}; };
options {
directory "/var/named";
pid-file "/run/named/named.pid";
forwarders { {{ dns_forward }}; };
2022-03-12 15:11:25 -05:00
listen-on { any; };
2022-02-27 16:05:34 -05:00
recursion yes;
2022-03-12 15:11:25 -05:00
allow-recursion { any; };
2022-02-27 16:05:34 -05:00
allow-query { internals; };
allow-transfer { none; };
2022-03-12 15:11:25 -05:00
dnssec-validation no;
resolver-query-timeout 30000;
2022-02-27 16:05:34 -05:00
};
zone "localhost" IN {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
};
zone "{{ dyndns_domain }}" {
2022-02-27 16:05:34 -05:00
type master;
file "/var/named/{{ dyndns_domain }}";
2022-02-27 16:05:34 -05:00
};
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";
};