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/templates/named/named.conf.j2
2022-02-27 16:05:34 -05:00

46 lines
957 B
Django/Jinja

// 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 }}; };
// Uncomment these to enable IPv6 connections support
// IPv4 will still work:
// listen-on-v6 { any; };
// Add this for no IPv4:
// listen-on { none; };
recursion yes;
allow-query { internals; };
allow-transfer { none; };
dnssec-validation auto;
allow-update { none; };
version none;
hostname none;
server-id none;
};
zone "localhost" IN {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
};
zone "{{ domain }}" {
type master;
file "/var/named/{{ 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";
};