Annotation of src/etc/unbound.conf, Revision 1.12
1.12 ! florian 1: # $OpenBSD: unbound.conf,v 1.11 2018/12/10 16:46:03 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.12 ! florian 22: # Uncomment to enable DNSSEC validation.
! 23: #
! 24: #auto-trust-anchor-file: "/var/unbound/db/root.key"
! 25:
! 26: # Uncomment to synthesize NXDOMAINs from DNSSEC NSEC chains
! 27: # https://tools.ietf.org/html/rfc8198
! 28: #
! 29: #aggressive-nsec: yes
1.1 sthen 30:
31: # Serve zones authoritatively from Unbound to resolver clients.
1.4 millert 32: # Not for external service.
1.1 sthen 33: #
34: #local-zone: "local." static
35: #local-data: "mycomputer.local. IN A 192.0.2.51"
1.4 millert 36: #local-zone: "2.0.192.in-addr.arpa." static
1.1 sthen 37: #local-data-ptr: "192.0.2.51 mycomputer.local"
38:
39: # UDP EDNS reassembly buffer advertised to peers. Default 4096.
40: # May need lowering on broken networks with fragmentation/MTU issues,
41: # particularly if validating DNSSEC.
42: #
43: #edns-buffer-size: 1480
44:
45: # Use TCP for "forward-zone" requests. Useful if you are making
46: # DNS requests over an SSH port forwarding.
47: #
48: #tcp-upstream: yes
1.6 sthen 49:
1.5 sthen 50: remote-control:
51: control-enable: yes
52: control-use-cert: no
53: control-interface: /var/run/unbound.sock
1.1 sthen 54:
1.10 sthen 55: # Use an upstream forwarder (recursive resolver) for some or all zones.
1.1 sthen 56: #
57: #forward-zone:
58: # name: "." # use for ALL queries
1.10 sthen 59: # forward-addr: 192.0.2.53 # example address only
1.1 sthen 60: # forward-first: yes # try direct if forwarder fails