Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.2 KiB

  1. # $OpenBSD: unbound.conf,v 1.17 2019/08/25 15:50:21 ajacoutot Exp $
  2. server:
  3. interface: 127.0.0.1
  4. #interface: 127.0.0.1@5353 # listen on alternative port
  5. interface: ::1
  6. #do-ip6: no
  7. # override the default "any" address to send queries; if multiple
  8. # addresses are available, they are used randomly to counter spoofing
  9. #outgoing-interface: 192.0.2.1
  10. #outgoing-interface: 2001:db8::53
  11. access-control: 0.0.0.0/0 refuse
  12. access-control: 127.0.0.0/8 allow
  13. access-control: ::0/0 refuse
  14. access-control: ::1 allow
  15. hide-identity: yes
  16. hide-version: yes
  17. # Uncomment to enable DNSSEC validation.
  18. #
  19. #auto-trust-anchor-file: "/var/unbound/db/root.key"
  20. #val-log-level: 2
  21. # Uncomment to synthesize NXDOMAINs from DNSSEC NSEC chains
  22. # https://tools.ietf.org/html/rfc8198
  23. #
  24. #aggressive-nsec: yes
  25. # Serve zones authoritatively from Unbound to resolver clients.
  26. # Not for external service.
  27. #
  28. #local-zone: "local." static
  29. #local-data: "mycomputer.local. IN A 192.0.2.51"
  30. #local-zone: "2.0.192.in-addr.arpa." static
  31. #local-data-ptr: "192.0.2.51 mycomputer.local"
  32. # UDP EDNS reassembly buffer advertised to peers. Default 4096.
  33. # May need lowering on broken networks with fragmentation/MTU issues,
  34. # particularly if validating DNSSEC.
  35. #
  36. #edns-buffer-size: 1480
  37. # Use TCP for "forward-zone" requests. Useful if you are making
  38. # DNS requests over an SSH port forwarding.
  39. #
  40. #tcp-upstream: yes
  41. # CA Certificates used for forward-tls-upstream (RFC7858) hostname
  42. # verification. Since it's outside the chroot it is only loaded at
  43. # startup and thus cannot be changed via a reload.
  44. #tls-cert-bundle: "/etc/ssl/cert.pem"
  45. remote-control:
  46. control-enable: yes
  47. control-interface: /var/run/unbound.sock
  48. # Use an upstream forwarder (recursive resolver) for some or all zones.
  49. #
  50. #forward-zone:
  51. # name: "." # use for ALL queries
  52. # forward-addr: 192.0.2.53 # example address only
  53. # forward-first: yes # try direct if forwarder fails
  54. # Use an upstream DNS-over-TLS forwarder and do not fall back to cleartext
  55. # if that fails.
  56. #forward-zone:
  57. # name: "."
  58. # forward-tls-upstream: yes # use DNS-over-TLS forwarder
  59. # forward-first: no # do NOT send direct
  60. # # the hostname after "#" is not a comment, it is used for TLS checks:
  61. # forward-addr: 192.0.2.53@853#resolver.hostname.example