aboutsummaryrefslogtreecommitdiff
path: root/bind/conf/named.conf
blob: dcf0cf3b61efe9caa8f288786ba1c661635d859c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// vi:ft=named noexpandtab

include "/etc/bind/rndc.key";

options {
	directory "/etc/bind/local/cache";
	bindkeys-file "/etc/bind/bind.keys";

	//========================================================================
	// 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
	//========================================================================

	// mcrute: disable dnssec because the AWS resolvers return invalid zone
	// signatures
	dnssec-validation no;

	zone-statistics full;

	auth-nxdomain no;    # conform to RFC1035
	notify master-only;  # don't send NOTIFY from secondaries

	version none;
	hostname none;

	listen-on {
		any;
	};

	listen-on-v6 {
		any;
	};

	allow-update-forwarding {
		any;
	};

	allow-notify {
		all-dns-servers;
	};

	allow-recursion {
		internal-nets;
		localhost;
	};

	allow-transfer {
		internal-nets;
		localhost;
	};

	// Force TCP if response would be larger than IPv6 fragment size
	// see: https://blog.apnic.net/2020/09/17/dns-flag-day-2020-what-you-need-to-know/
	max-udp-size 1220;
	edns-udp-size 1220;

	// Allow more transfers at once to improve secondary convergence
	transfers-in 50;
	transfers-out 50;
};

statistics-channels {
	inet 127.0.0.1 port 8053 allow { localhost; };
	inet ::1 port 8053 allow { localhost; };
};

controls {
	inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
	inet ::1 allow { localhost; } keys { "rndc-key"; };
};

include "/etc/bind/named_local.conf";