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.

154 lines
5.5 KiB

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