Examples of the necessary zone files, for the "Install BIND9
zonefiles." task above, are given below. If the campus ISP provided
one or more IP addresses for stable name servers, those should
-probably be used as forwarders rather than Google. And SecureDNS just
-craps up =/var/log/= and the Systemd journal.
+probably be used as forwarders rather than Google.
#+NAME: bind-options
#+CAPTION: ~bind-options~
#+BEGIN_SRC conf
acl "trusted" {
- {{ private_net_cidr }};
- {{ public_vpn_net_cidr }};
- {{ campus_vpn_net_cidr }};
- {{ gate_wifi_net_cidr }};
- localhost;
+ {{ private_net_cidr }};
+ {{ public_vpn_net_cidr }};
+ {{ campus_vpn_net_cidr }};
+ {{ gate_wifi_net_cidr }};
+ localhost;
};
options {
allow-recursion { trusted; };
allow-query-cache { trusted; };
- //============================================================
- // If BIND logs error messages about the root key being
- // expired, you will need to update your keys.
- // See https://www.isc.org/bind-keys
- //============================================================
- //dnssec-validation auto;
- // If Secure DNS is too much of a headache...
- dnssec-enable no;
- dnssec-validation no;
-
- auth-nxdomain no; # conform to RFC1035
- //listen-on-v6 { any; };
- listen-on { {{ core_addr }}; };
+ listen-on {
+ {{ core_addr }};
+ localhost;
+ };
};
#+END_SRC
copy:
content: |
acl "trusted" {
- {{ private_net_cidr }};
- {{ public_vpn_net_cidr }};
- {{ campus_vpn_net_cidr }};
- {{ gate_wifi_net_cidr }};
- localhost;
+ {{ private_net_cidr }};
+ {{ public_vpn_net_cidr }};
+ {{ campus_vpn_net_cidr }};
+ {{ gate_wifi_net_cidr }};
+ localhost;
};
options {
allow-recursion { trusted; };
allow-query-cache { trusted; };
- //============================================================
- // If BIND logs error messages about the root key being
- // expired, you will need to update your keys.
- // See https://www.isc.org/bind-keys
- //============================================================
- //dnssec-validation auto;
- // If Secure DNS is too much of a headache...
- dnssec-enable no;
- dnssec-validation no;
-
- auth-nxdomain no; # conform to RFC1035
- //listen-on-v6 { any; };
- listen-on { {{ core_addr }}; };
+ listen-on {
+ {{ core_addr }};
+ localhost;
+ };
};
dest: /etc/bind/named.conf.options
notify: Reload BIND9.