homeserver-iac/roles/networking/nameserver/templates/named.conf.j2

46 lines
884 B
Plaintext
Raw Normal View History

// vim:set ts=4 sw=4 et:
2024-06-16 15:05:12 -04:00
acl internals {
127.0.0.0/8;
{{ local_subnet }};
{% if wireguard is defined %}
{{ wireguard.ip.cidr }};
{% endif %}
};
options {
directory "/var/named";
pid-file "/run/named/named.pid";
forwarders { {{ dns_forward }}; };
listen-on { any; };
recursion yes;
allow-recursion { any; };
allow-query { internals; };
allow-transfer { none; };
dnssec-validation no;
resolver-query-timeout 30000;
};
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 }}" {
type master;
file "/var/named/{{ dyndns_domain }}";
};
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";
};