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.

94 lines
3.0 KiB

  1. diff --git a/doc/example.conf.in b/doc/example.conf.in
  2. index c520c88..af92a87 100644
  3. --- a/doc/example.conf.in
  4. +++ b/doc/example.conf.in
  5. @@ -1,20 +1,81 @@
  6. -#
  7. -# Example configuration file.
  8. -#
  9. -# See unbound.conf(5) man page, version 1.5.10.
  10. -#
  11. -# this is a comment.
  12. +##############################################################################
  13. +# MEMORY CONTROL EXAMPLE
  14. +# In the example config settings below memory usage is reduced. Some ser-
  15. +# vice levels are lower, notable very large data and a high TCP load are
  16. +# no longer supported ... are exceptional for the DNS.
  17. +# (http://unbound.net/documentation/unbound.conf.html)
  18. +##############################################################################
  19. #Use this to include other text into the file.
  20. #include: "otherfile.conf"
  21. # The server clause sets the main parameters.
  22. server:
  23. - # whitespace is not necessary, but looks cleaner.
  24. - # verbosity number, 0 is least verbose. 1 is default.
  25. + # verbosity 1 is default
  26. verbosity: 1
  27. + # prevent any upstream core surprises (OpenWrt assumptions)
  28. + username: "unbound"
  29. + pidfile: "/var/run/unbound.pid"
  30. + directory: "/etc/unbound"
  31. + chroot: ""
  32. +
  33. + # no threads and no memory slabs for threads
  34. + num-threads: 1
  35. + msg-cache-slabs: 1
  36. + rrset-cache-slabs: 1
  37. + infra-cache-slabs: 1
  38. + key-cache-slabs: 1
  39. +
  40. + # don't be picky about interfaces but consider your firewall
  41. + interface: 0.0.0.0
  42. + interface: ::0
  43. + access-control: 0.0.0.0/0 allow
  44. + access-control: ::0/0 allow
  45. +
  46. + # this limits TCP service but uses less buffers
  47. + outgoing-num-tcp: 1
  48. + incoming-num-tcp: 1
  49. +
  50. + # use somewhat higher port numbers versus possible NAT issue
  51. + outgoing-port-permit: "10240-65335"
  52. +
  53. + # uses less memory, but less performance
  54. + outgoing-range: 60
  55. + num-queries-per-thread: 30
  56. +
  57. + # exclude large responses
  58. + msg-buffer-size: 8192
  59. +
  60. + # tiny memory cache
  61. + infra-cache-numhosts: 200
  62. + msg-cache-size: 100k
  63. + rrset-cache-size: 100k
  64. + key-cache-size: 100k
  65. + neg-cache-size: 10k
  66. +
  67. + # gentle on recursion
  68. + target-fetch-policy: "2 1 0 0 0 0"
  69. + harden-large-queries: yes
  70. + harden-short-bufsize: yes
  71. +
  72. + # Enable a trust anchor and modules "validator iterator." However, Unbound
  73. + # RFC5011 "auto-trust-anchor-" activity can be busy and harmful to flash ROM.
  74. + # "/etc/unbound" (directory & files) needs chown for write access. Else, use
  75. + # plain "trust-anchor-" to treat the key file as static.
  76. + #module-config: "validator iterator"
  77. + #auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
  78. + #trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
  79. +
  80. + # DNSSEC needs real time to validate signatures. If your device does not
  81. + # have power off clock (reboot), then you may need this work around.
  82. + #domain-insecure: "pool.ntp.org"
  83. +
  84. +##############################################################################
  85. +# Resume Stock example.conf.in
  86. +##############################################################################
  87. +
  88. # print statistics to the log (for every thread) every N seconds.
  89. # Set to "" or 0 to disable. Default is disabled.
  90. # statistics-interval: 0