aboutsummaryrefslogtreecommitdiff
path: root/src/unbound-adblock/etc/unbound.base.conf
blob: 43e10b1817f86b362ec30d9db616e1a0650616ca (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
include: "unbound.conf.d/zones/ad-zones.conf"

server:
    port: 5353
    interface: 0.0.0.0

    # Adjust to match your network
    access-control: 0.0.0.0/0 refuse
    access-control: 127.0.0.0/8 allow
    access-control: 10.0.0.0/8 allow
    access-control: 172.16.0.0/12 allow
    access-control: 192.168.0.0/16 allow

    hide-identity: yes
    hide-version: yes
    qname-minimisation: yes
    use-caps-for-id: yes

    # Matches the root.key path used by unbound-anchor in entrypoint.sh
    auto-trust-anchor-file: "/var/lib/unbound/root.key"

    num-threads: 1
    msg-cache-size: 16m
    rrset-cache-size: 32m
    prefetch: yes

forward-zone:
    name: "."
    forward-tls-upstream: yes
    forward-addr: 1.1.1.1@853#cloudflare-dns.com
    forward-addr: 1.0.0.1@853#cloudflare-dns.com
    forward-addr: 9.9.9.9@853#dns.quad9.net
    forward-addr: 149.112.112.112@853#dns.quad9.net