Annotation of src/etc/unbound.conf, Revision 1.11
1.11 ! sthen 1: # $OpenBSD: unbound.conf,v 1.10 2018/12/07 11:54:04 sthen Exp $
1.1 sthen 2:
3: server:
4: interface: 127.0.0.1
5: #interface: 127.0.0.1@5353 # listen on alternative port
6: interface: ::1
7: #do-ip6: no
1.7 sthen 8:
9: # override the default "any" address to send queries; if multiple
10: # addresses are available, they are used randomly to counter spoofing
11: #outgoing-interface: 192.0.2.1
12: #outgoing-interface: 2001:db8::53
1.1 sthen 13:
14: access-control: 0.0.0.0/0 refuse
15: access-control: 127.0.0.0/8 allow
16: access-control: ::0/0 refuse
17: access-control: ::1 allow
18:
19: hide-identity: yes
20: hide-version: yes
1.6 sthen 21:
1.9 florian 22: # Enable DNSSEC validation.
23: auto-trust-anchor-file: "/var/unbound/db/root.key"
24: val-log-level: 2
1.8 florian 25:
1.9 florian 26: # Synthesize NXDOMAINs from DNSSEC NSEC chains. RFC 8198
27: aggressive-nsec: yes
1.1 sthen 28:
29: # Serve zones authoritatively from Unbound to resolver clients.
1.4 millert 30: # Not for external service.
1.1 sthen 31: #
32: #local-zone: "local." static
33: #local-data: "mycomputer.local. IN A 192.0.2.51"
1.4 millert 34: #local-zone: "2.0.192.in-addr.arpa." static
1.1 sthen 35: #local-data-ptr: "192.0.2.51 mycomputer.local"
36:
37: # UDP EDNS reassembly buffer advertised to peers. Default 4096.
38: # May need lowering on broken networks with fragmentation/MTU issues,
39: # particularly if validating DNSSEC.
40: #
41: #edns-buffer-size: 1480
42:
43: # Use TCP for "forward-zone" requests. Useful if you are making
44: # DNS requests over an SSH port forwarding.
45: #
46: #tcp-upstream: yes
1.6 sthen 47:
1.5 sthen 48: remote-control:
49: control-enable: yes
50: control-use-cert: no
51: control-interface: /var/run/unbound.sock
1.1 sthen 52:
1.10 sthen 53: # Use an upstream forwarder (recursive resolver) for some or all zones.
1.1 sthen 54: #
55: #forward-zone:
56: # name: "." # use for ALL queries
1.10 sthen 57: # forward-addr: 192.0.2.53 # example address only
1.1 sthen 58: # forward-first: yes # try direct if forwarder fails