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.

143 lines
5.2 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. @@ -218,6 +233,7 @@ server:
  79. # and the given username is assumed. Default is user "unbound".
  80. # If you give "" no privileges are dropped.
  81. # username: "@UNBOUND_USERNAME@"
  82. + username: ""
  83. # the working directory. The relative files in this config are
  84. # relative to this directory. If you give "" the working directory
  85. @@ -266,12 +284,15 @@ server:
  86. # positive value: fetch that many targets opportunistically.
  87. # Enclose the list of numbers between quotes ("").
  88. # target-fetch-policy: "3 2 1 0 0"
  89. + target-fetch-policy: "2 1 0 0 0 0"
  90. # Harden against very small EDNS buffer sizes.
  91. # harden-short-bufsize: no
  92. + harden-short-bufsize: yes
  93. # Harden against unseemly large queries.
  94. # harden-large-queries: no
  95. + harden-large-queries: yes
  96. # Harden against out of zone rrsets, to avoid spoofing attempts.
  97. # harden-glue: yes
  98. @@ -367,7 +388,7 @@ server:
  99. # you start unbound (i.e. in the system boot scripts). And enable:
  100. # Please note usage of unbound-anchor root anchor is at your own risk
  101. # and under the terms of our LICENSE (see that file in the source).
  102. - # auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
  103. + auto-trust-anchor-file: "@UNBOUND_ROOTKEY_FILE@"
  104. # File with DLV trusted keys. Same format as trust-anchor-file.
  105. # There can be only one DLV configured, it is trusted from root down.
  106. @@ -456,15 +477,18 @@ server:
  107. # the amount of memory to use for the key cache.
  108. # plain value in bytes or you can append k, m or G. default is "4Mb".
  109. # key-cache-size: 4m
  110. + key-cache-size: 100k
  111. # the number of slabs to use for the key cache.
  112. # the number of slabs must be a power of 2.
  113. # more slabs reduce lock contention, but fragment memory usage.
  114. # key-cache-slabs: 4
  115. + key-cache-slabs: 1
  116. # the amount of memory to use for the negative cache (used for DLV).
  117. # plain value in bytes or you can append k, m or G. default is "1Mb".
  118. # neg-cache-size: 1m
  119. + neg-cache-size: 10k
  120. # By default, for a number of zones a small default 'nothing here'
  121. # reply is built-in. Query traffic is thus blocked. If you