File: options.lua.j2

package info (click to toggle)
knot-resolver 6.0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,376 kB
  • sloc: javascript: 42,732; ansic: 40,311; python: 12,580; cpp: 2,121; sh: 1,988; xml: 193; makefile: 181
file content (52 lines) | stat: -rw-r--r-- 1,297 bytes parent folder | download
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
{% from 'macros/common_macros.lua.j2' import boolean %}

-- options.glue-checking
mode('{{ cfg.options.glue_checking }}')

{% if cfg.options.rebinding_protection %}
-- options.rebinding-protection
modules.load('rebinding < iterate')
{% endif %}

{% if cfg.options.violators_workarounds %}
-- options.violators-workarounds
modules.load('workarounds < iterate')
{% endif %}

{% if cfg.options.serve_stale %}
-- options.serve-stale
modules.load('serve_stale < cache')
{% endif %}

-- options.query-priming
{% if cfg.options.priming %}
modules.load('priming')
{% else %}
modules.unload('priming')
{% endif %}

-- options.time-jump-detection
{% if cfg.options.time_jump_detection %}
modules.load('detect_time_jump')
{% else %}
modules.unload('detect_time_jump')
{% endif %}

-- options.refuse-no-rd
{% if cfg.options.refuse_no_rd %}
modules.load('refuse_nord')
{% else %}
modules.unload('refuse_nord')
{% endif %}

-- options.qname-minimisation
option('NO_MINIMIZE', {{ boolean(cfg.options.minimize,true) }})

-- options.query-loopback
option('ALLOW_LOCAL', {{ boolean(cfg.options.query_loopback) }})

-- options.reorder-rrset
option('REORDER_RR', {{ boolean(cfg.options.reorder_rrset) }})

-- options.query-case-randomization
option('NO_0X20', {{ boolean(cfg.options.query_case_randomization,true) }})