summaryrefslogtreecommitdiffstats
path: root/tests/integration/deckard/template/named.j2
blob: bc0acb7379fb5265f3229e50373fc033426a28fb (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
options {
	querylog yes;

{% if ':' in SELF_ADDR %}
	listen-on-v6 { {{SELF_ADDR}}; };
	query-source-v6 address {{SELF_ADDR}};
{% else %}
	listen-on { {{SELF_ADDR}}; };
	query-source address {{SELF_ADDR}};
{% endif %}

	edns-udp-size 4096;
	max-cache-size 2097152;

{% if QMIN == "false" %}
qname-minimization off;
{% else %}
qname-minimization strict;
{% endif %}

	// Disable RFC8145 signaling, scenario doesn't provide expected ansers
	trust-anchor-telemetry no;

{% if not TRUST_ANCHOR_FILES %}
	dnssec-validation no;
{% else %}
unsupported as of yet
-- make sure that value specified at compile-time does not break tests
{% for TAF in TRUST_ANCHOR_FILES %}
trust_anchors.add_file('{{TAF}}')
{% endfor %}
{% endif %}

{% if NEGATIVE_TRUST_ANCHORS %}
unsupported as of yet
validate-except {
{% for DI in NEGATIVE_TRUST_ANCHORS %}
{{DI}}
{% endfor %}
};
{% endif %}

};


{% if FORWARD_ADDR %}
zone "." {
	type forward;
	forward only;
	forwarders { {{FORWARD_ADDR}}; };
};
{% endif %}

zone "." {
	type hint;
	file "hints.zone";
};


{% if DO_NOT_QUERY_LOCALHOST == "false" %}
{% endif %}

{% if HARDEN_GLUE == "true" %}
{% endif %}


{% if DO_IP6 == "true" %}
{% else %}
server ::/0 {
	bogus true;
};
{% endif %}

{% if DO_IP4 == "true" %}
{% else %}
server 0.0.0.0/0 {
	bogus true;
};
{% endif %}

{% if FEATURES.min_ttl is defined %}
min-cache-ttl {FEATURES.min_ttl}};
min-ncache-ttl {FEATURES.min_ttl}};
{% endif %}

{% if FEATURES.max_ttl is defined %}
max-cache-ttl {{FEATURES.max_ttl}};
{% endif %}

{% if FEATURES.dns64_prefix is defined %}
// dns64.config('{{FEATURES.dns64_prefix}}')
{% endif %}

{% if FEATURES.static_hint_name is defined %}
static hint unsupported
{% endif %}

logging {
	category resolver {
		stderr;
	};
	channel stderr {
		stderr;
		severity debug 10;
	};
};