[BACK]Return to unbound.conf CVS log [TXT][DIR] Up to [local] / src / etc

Annotation of src/etc/unbound.conf, Revision 1.8

1.8     ! florian     1: # $OpenBSD: unbound.conf,v 1.7 2016/03/30 01:41:25 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
                     21:
1.6       sthen      22:        # Uncomment to enable qname minimisation.
1.8     ! florian    23:        # https://tools.ietf.org/html/rfc7816
1.6       sthen      24:        #
1.8     ! florian    25:        #qname-minimisation: yes
1.6       sthen      26:
1.2       sthen      27:        # Uncomment to enable DNSSEC validation.
1.1       sthen      28:        #
1.2       sthen      29:        #auto-trust-anchor-file: "/var/unbound/db/root.key"
1.8     ! florian    30:
        !            31:        # Uncomment to synthesize NXDOMAINs from DNSSEC NSEC chains
        !            32:        # https://tools.ietf.org/html/rfc8198
        !            33:        #
        !            34:        #aggressive-nsec: yes
1.1       sthen      35:
                     36:        # Serve zones authoritatively from Unbound to resolver clients.
1.4       millert    37:        # Not for external service.
1.1       sthen      38:        #
                     39:        #local-zone: "local." static
                     40:        #local-data: "mycomputer.local. IN A 192.0.2.51"
1.4       millert    41:        #local-zone: "2.0.192.in-addr.arpa." static
1.1       sthen      42:        #local-data-ptr: "192.0.2.51 mycomputer.local"
                     43:
                     44:        # UDP EDNS reassembly buffer advertised to peers. Default 4096.
                     45:        # May need lowering on broken networks with fragmentation/MTU issues,
                     46:        # particularly if validating DNSSEC.
                     47:        #
                     48:        #edns-buffer-size: 1480
                     49:
                     50:        # Use TCP for "forward-zone" requests. Useful if you are making
                     51:        # DNS requests over an SSH port forwarding.
                     52:        #
                     53:        #tcp-upstream: yes
1.6       sthen      54:
                     55:        # DNS64 options, synthesizes AAAA records for hosts that don't have
                     56:        # them. For use with NAT64 (PF "af-to").
                     57:        #
                     58:        #module-config: "dns64 validator iterator"
                     59:        #dns64-prefix: 64:ff9b::/96     # well-known prefix (default)
                     60:        #dns64-synthall: no
1.5       sthen      61:
                     62: remote-control:
                     63:        control-enable: yes
                     64:        control-use-cert: no
                     65:        control-interface: /var/run/unbound.sock
1.1       sthen      66:
                     67: # Use an upstream forwarder (recursive resolver) for specific zones.
                     68: # Example addresses given below are public resolvers valid as of 2014/03.
                     69: #
                     70: #forward-zone:
                     71: #      name: "."                               # use for ALL queries
                     72: #      forward-addr: 74.82.42.42               # he.net
                     73: #      forward-addr: 2001:470:20::2            # he.net v6
                     74: #      forward-addr: 8.8.8.8                   # google.com
                     75: #      forward-addr: 2001:4860:4860::8888      # google.com v6
                     76: #      forward-addr: 208.67.222.222            # opendns.com
                     77: #      forward-first: yes                      # try direct if forwarder fails