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.

135 lines
4.9 KiB

  1. diff --git a/doc/example.conf.in b/doc/example.conf.in
  2. index ff90e3b..5c20fdf 100644
  3. --- a/doc/example.conf.in
  4. +++ b/doc/example.conf.in
  5. @@ -38,6 +38,8 @@ server:
  6. # interface: 192.0.2.154
  7. # interface: 192.0.2.154@5003
  8. # interface: 2001:DB8::5
  9. + interface: 0.0.0.0
  10. + interface: ::0
  11. # enable this feature to copy the source address of queries to reply.
  12. # Socket options are not supported on all platforms. experimental.
  13. @@ -57,6 +59,7 @@ server:
  14. # port range that can be open simultaneously. About double the
  15. # num-queries-per-thread, or, use as many as the OS will allow you.
  16. # outgoing-range: 4096
  17. + outgoing-range: 60
  18. # permit unbound to use this port number or port range for
  19. # making outgoing queries, using an outgoing interface.
  20. @@ -73,9 +76,11 @@ server:
  21. # number of outgoing simultaneous tcp buffers to hold per thread.
  22. # outgoing-num-tcp: 10
  23. + outgoing-num-tcp: 1
  24. # number of incoming simultaneous tcp buffers to hold per thread.
  25. # incoming-num-tcp: 10
  26. + incoming-num-tcp: 1
  27. # buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
  28. # 0 is system default. Use 4m to catch query spikes for busy servers.
  29. @@ -103,18 +108,22 @@ server:
  30. # buffer size for handling DNS data. No messages larger than this
  31. # size can be sent or received, by UDP or TCP. In bytes.
  32. # msg-buffer-size: 65552
  33. + msg-buffer-size: 8192
  34. # the amount of memory to use for the message cache.
  35. # plain value in bytes or you can append k, m or G. default is "4Mb".
  36. # msg-cache-size: 4m
  37. + msg-cache-size: 100k
  38. # the number of slabs to use for the message cache.
  39. # the number of slabs must be a power of 2.
  40. # more slabs reduce lock contention, but fragment memory usage.
  41. # msg-cache-slabs: 4
  42. + msg-cache-slabs: 1
  43. # the number of queries that a thread gets to service.
  44. # num-queries-per-thread: 1024
  45. + num-queries-per-thread: 30
  46. # if very busy, 50% queries run to completion, 50% get timeout in msec
  47. # jostle-timeout: 200
  48. @@ -125,11 +134,13 @@ server:
  49. # the amount of memory to use for the RRset cache.
  50. # plain value in bytes or you can append k, m or G. default is "4Mb".
  51. # rrset-cache-size: 4m
  52. + rrset-cache-size: 100k
  53. # the number of slabs to use for the RRset cache.
  54. # the number of slabs must be a power of 2.
  55. # more slabs reduce lock contention, but fragment memory usage.
  56. # rrset-cache-slabs: 4
  57. + rrset-cache-slabs: 1
  58. # the time to live (TTL) value lower bound, in seconds. Default 0.
  59. # If more than an hour could easily give trouble due to stale data.
  60. @@ -153,9 +164,11 @@ server:
  61. # the number of slabs must be a power of 2.
  62. # more slabs reduce lock contention, but fragment memory usage.
  63. # infra-cache-slabs: 4
  64. + infra-cache-slabs: 1
  65. # the maximum number of hosts that are cached (roundtrip, EDNS, lame).
  66. # infra-cache-numhosts: 10000
  67. + infra-cache-numhosts: 200
  68. # Enable IPv4, "yes" or "no".
  69. # do-ip4: yes
  70. @@ -188,6 +201,8 @@ server:
  71. # access-control: ::0/0 refuse
  72. # access-control: ::1 allow
  73. # access-control: ::ffff:127.0.0.1 allow
  74. + access-control: 0.0.0.0/0 allow
  75. + access-control: ::0/0 allow
  76. # if given, a chroot(2) is done to the given directory.
  77. # i.e. you can chroot to the working directory, for example,
  78. @@ -266,12 +284,15 @@ server:
  79. # positive value: fetch that many targets opportunistically.
  80. # Enclose the list of numbers between quotes ("").
  81. # target-fetch-policy: "3 2 1 0 0"
  82. + target-fetch-policy: "2 1 0 0 0 0"
  83. # Harden against very small EDNS buffer sizes.
  84. # harden-short-bufsize: no
  85. + harden-short-bufsize: yes
  86. # Harden against unseemly large queries.
  87. # harden-large-queries: no
  88. + harden-large-queries: yes
  89. # Harden against out of zone rrsets, to avoid spoofing attempts.
  90. # harden-glue: yes
  91. @@ -367,7 +388,7 @@ server:
  92. # you start unbound (i.e. in the system boot scripts). And enable:
  93. # Please note usage of unbound-anchor root anchor is at your own risk
  94. # and under the terms of our LICENSE (see that file in the source).
  95. - # auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
  96. + auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
  97. # File with DLV trusted keys. Same format as trust-anchor-file.
  98. # There can be only one DLV configured, it is trusted from root down.
  99. @@ -456,15 +477,18 @@ server:
  100. # the amount of memory to use for the key cache.
  101. # plain value in bytes or you can append k, m or G. default is "4Mb".
  102. # key-cache-size: 4m
  103. + key-cache-size: 100k
  104. # the number of slabs to use for the key cache.
  105. # the number of slabs must be a power of 2.
  106. # more slabs reduce lock contention, but fragment memory usage.
  107. # key-cache-slabs: 4
  108. + key-cache-slabs: 1
  109. # the amount of memory to use for the negative cache (used for DLV).
  110. # plain value in bytes or you can append k, m or G. default is "1Mb".
  111. # neg-cache-size: 1m
  112. + neg-cache-size: 10k
  113. # By default, for a number of zones a small default 'nothing here'
  114. # reply is built-in. Query traffic is thus blocked. If you