summaryrefslogtreecommitdiff
path: root/data/templates/dns-forwarding/recursor.conf.tmpl
blob: 9e0ad5d17b761e2495ed67c90a8554e8df3a74e8 (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
### Autogenerated by dns_forwarding.py ###

# XXX: pdns recursor doesn't like whitespace near entry separators,
# especially in the semicolon-separated lists of name servers.
# Please be careful if you edit the template.

# Non-configurable defaults
daemon=yes
threads=1
allow-from={{ allow_from | join(',') }}
log-common-errors=yes
non-local-bind=yes
query-local-address={{ source_address_v4 | join(',') }}
query-local-address6={{ source_address_v6 | join(',') }}
lua-config-file=recursor.conf.lua

# cache-size
max-cache-entries={{ cache_size }}

# negative TTL for NXDOMAIN
max-negative-ttl={{ negative_ttl }}

# ignore-hosts-file
export-etc-hosts={{ 'no' if ignore_hosts_file is defined else 'yes' }}

# listen-address
local-address={{ listen_address | join(',') }}

# dnssec
dnssec={{ dnssec }}

# serve rfc1918 records
serve-rfc1918={{ 'no' if no_serve_rfc1918 is defined else 'yes' }}

forward-zones-file=recursor.forward-zones.conf