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.

560 lines
15 KiB

  1. # Autogenerated configuration file template
  2. #################################
  3. # allow-from If set, only allow these comma separated netmasks to recurse
  4. #
  5. # allow-from=127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10
  6. #################################
  7. # allow-from-file If set, load allowed netmasks from this file
  8. #
  9. # allow-from-file=
  10. #################################
  11. # any-to-tcp Answer ANY queries with tc=1, shunting to TCP
  12. #
  13. # any-to-tcp=no
  14. #################################
  15. # api-config-dir Directory where REST API stores config and zones
  16. #
  17. # api-config-dir=
  18. #################################
  19. # api-key Static pre-shared authentication key for access to the REST API
  20. #
  21. # api-key=
  22. #################################
  23. # api-logfile Location of the server logfile (used by the REST API)
  24. #
  25. # api-logfile=/var/log/pdns.log
  26. #################################
  27. # api-readonly Disallow data modification through the REST API when set
  28. #
  29. # api-readonly=no
  30. #################################
  31. # auth-zones Zones for which we have authoritative data, comma separated domain=file pairs
  32. #
  33. # auth-zones=
  34. #################################
  35. # carbon-interval Number of seconds between carbon (graphite) updates
  36. #
  37. # carbon-interval=30
  38. #################################
  39. # carbon-ourname If set, overrides our reported hostname for carbon stats
  40. #
  41. # carbon-ourname=
  42. #################################
  43. # carbon-server If set, send metrics in carbon (graphite) format to this server IP address
  44. #
  45. # carbon-server=
  46. #################################
  47. # chroot switch to chroot jail
  48. #
  49. # chroot=
  50. #################################
  51. # client-tcp-timeout Timeout in seconds when talking to TCP clients
  52. #
  53. # client-tcp-timeout=2
  54. #################################
  55. # config-dir Location of configuration directory (recursor.conf)
  56. #
  57. # config-dir=/usr/local/etc
  58. #################################
  59. # config-name Name of this virtual configuration - will rename the binary image
  60. #
  61. # config-name=
  62. #################################
  63. # cpu-map Thread to CPU mapping, space separated thread-id=cpu1,cpu2..cpuN pairs
  64. #
  65. # cpu-map=
  66. #################################
  67. # daemon Operate as a daemon
  68. #
  69. # daemon=no
  70. #################################
  71. # delegation-only Which domains we only accept delegations from
  72. #
  73. # delegation-only=
  74. #################################
  75. # disable-packetcache Disable packetcache
  76. #
  77. # disable-packetcache=no
  78. #################################
  79. # disable-real-memory-usage Disable expensive real-memory-usage metric
  80. #
  81. # disable-real-memory-usage=no
  82. #################################
  83. # disable-syslog Disable logging to syslog, useful when running inside a supervisor that logs stdout
  84. #
  85. # disable-syslog=no
  86. #################################
  87. # distribution-load-factor The load factor used when PowerDNS is distributing queries to worker threads
  88. #
  89. # distribution-load-factor=0.0
  90. #################################
  91. # dnssec DNSSEC mode: off/process-no-validate (default)/process/log-fail/validate
  92. #
  93. # dnssec=process-no-validate
  94. #################################
  95. # dnssec-log-bogus Log DNSSEC bogus validations
  96. #
  97. # dnssec-log-bogus=no
  98. #################################
  99. # dont-query If set, do not query these netmasks for DNS data
  100. #
  101. # dont-query=127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32
  102. #################################
  103. # ecs-cache-limit-ttl Minimum TTL to cache ECS response
  104. #
  105. # ecs-cache-limit-ttl=0
  106. #################################
  107. # ecs-ipv4-bits Number of bits of IPv4 address to pass for EDNS Client Subnet
  108. #
  109. # ecs-ipv4-bits=24
  110. #################################
  111. # ecs-ipv4-cache-bits Maximum number of bits of IPv4 mask to cache ECS response
  112. #
  113. # ecs-ipv4-cache-bits=24
  114. #################################
  115. # ecs-ipv6-bits Number of bits of IPv6 address to pass for EDNS Client Subnet
  116. #
  117. # ecs-ipv6-bits=56
  118. #################################
  119. # ecs-ipv6-cache-bits Maximum number of bits of IPv6 mask to cache ECS response
  120. #
  121. # ecs-ipv6-cache-bits=56
  122. #################################
  123. # ecs-scope-zero-address Address to send to whitelisted authoritative servers for incoming queries with ECS prefix-length source of 0
  124. #
  125. # ecs-scope-zero-address=
  126. #################################
  127. # edns-outgoing-bufsize Outgoing EDNS buffer size
  128. #
  129. # edns-outgoing-bufsize=1680
  130. #################################
  131. # edns-subnet-whitelist List of netmasks and domains that we should enable EDNS subnet for
  132. #
  133. # edns-subnet-whitelist=
  134. #################################
  135. # entropy-source If set, read entropy from this file
  136. #
  137. # entropy-source=/dev/urandom
  138. #################################
  139. # etc-hosts-file Path to 'hosts' file
  140. #
  141. # etc-hosts-file=/etc/hosts
  142. #################################
  143. # export-etc-hosts If we should serve up contents from /etc/hosts
  144. #
  145. # export-etc-hosts=off
  146. #################################
  147. # export-etc-hosts-search-suffix Also serve up the contents of /etc/hosts with this suffix
  148. #
  149. # export-etc-hosts-search-suffix=
  150. #################################
  151. # forward-zones Zones for which we forward queries, comma separated domain=ip pairs
  152. #
  153. # forward-zones=
  154. #################################
  155. # forward-zones-file File with (+)domain=ip pairs for forwarding
  156. #
  157. # forward-zones-file=
  158. #################################
  159. # forward-zones-recurse Zones for which we forward queries with recursion bit, comma separated domain=ip pairs
  160. #
  161. # forward-zones-recurse=
  162. #################################
  163. # gettag-needs-edns-options If EDNS Options should be extracted before calling the gettag() hook
  164. #
  165. # gettag-needs-edns-options=no
  166. #################################
  167. # hint-file If set, load root hints from this file
  168. #
  169. # hint-file=
  170. #################################
  171. # include-dir Include *.conf files from this directory
  172. #
  173. # include-dir=
  174. #################################
  175. # latency-statistic-size Number of latency values to calculate the qa-latency average
  176. #
  177. # latency-statistic-size=10000
  178. #################################
  179. # local-address IP addresses to listen on, separated by spaces or commas. Also accepts ports.
  180. #
  181. # local-address=127.0.0.1
  182. #################################
  183. # local-port port to listen on
  184. #
  185. # local-port=53
  186. #################################
  187. # log-common-errors If we should log rather common errors
  188. #
  189. # log-common-errors=no
  190. #################################
  191. # log-rpz-changes Log additions and removals to RPZ zones at Info level
  192. #
  193. # log-rpz-changes=no
  194. #################################
  195. # log-timestamp Print timestamps in log lines, useful to disable when running with a tool that timestamps stdout already
  196. #
  197. # log-timestamp=yes
  198. #################################
  199. # logging-facility Facility to log messages as. 0 corresponds to local0
  200. #
  201. # logging-facility=
  202. #################################
  203. # loglevel Amount of logging. Higher is more. Do not set below 3
  204. #
  205. # loglevel=6
  206. #################################
  207. # lowercase-outgoing Force outgoing questions to lowercase
  208. #
  209. # lowercase-outgoing=no
  210. #################################
  211. # lua-config-file More powerful configuration options
  212. #
  213. # lua-config-file=
  214. #################################
  215. # lua-dns-script Filename containing an optional 'lua' script that will be used to modify dns answers
  216. #
  217. # lua-dns-script=
  218. #################################
  219. # max-cache-entries If set, maximum number of entries in the main cache
  220. #
  221. # max-cache-entries=1000000
  222. #################################
  223. # max-cache-ttl maximum number of seconds to keep a cached entry in memory
  224. #
  225. # max-cache-ttl=86400
  226. #################################
  227. # max-mthreads Maximum number of simultaneous Mtasker threads
  228. #
  229. # max-mthreads=2048
  230. #################################
  231. # max-negative-ttl maximum number of seconds to keep a negative cached entry in memory
  232. #
  233. # max-negative-ttl=3600
  234. #################################
  235. # max-packetcache-entries maximum number of entries to keep in the packetcache
  236. #
  237. # max-packetcache-entries=500000
  238. #################################
  239. # max-qperq Maximum outgoing queries per query
  240. #
  241. # max-qperq=50
  242. #################################
  243. # max-recursion-depth Maximum number of internal recursion calls per query, 0 for unlimited
  244. #
  245. # max-recursion-depth=40
  246. #################################
  247. # max-tcp-clients Maximum number of simultaneous TCP clients
  248. #
  249. # max-tcp-clients=128
  250. #################################
  251. # max-tcp-per-client If set, maximum number of TCP sessions per client (IP address)
  252. #
  253. # max-tcp-per-client=0
  254. #################################
  255. # max-tcp-queries-per-connection If set, maximum number of TCP queries in a TCP connection
  256. #
  257. # max-tcp-queries-per-connection=0
  258. #################################
  259. # max-total-msec Maximum total wall-clock time per query in milliseconds, 0 for unlimited
  260. #
  261. # max-total-msec=7000
  262. #################################
  263. # max-udp-queries-per-round Maximum number of UDP queries processed per recvmsg() round, before returning back to normal processing
  264. #
  265. # max-udp-queries-per-round=10000
  266. #################################
  267. # minimum-ttl-override Set under adverse conditions, a minimum TTL
  268. #
  269. # minimum-ttl-override=0
  270. #################################
  271. # network-timeout Wait this number of milliseconds for network i/o
  272. #
  273. # network-timeout=1500
  274. #################################
  275. # no-shuffle Don't change
  276. #
  277. # no-shuffle=off
  278. #################################
  279. # non-local-bind Enable binding to non-local addresses by using FREEBIND / BINDANY socket options
  280. #
  281. # non-local-bind=no
  282. #################################
  283. # nsec3-max-iterations Maximum number of iterations allowed for an NSEC3 record
  284. #
  285. # nsec3-max-iterations=2500
  286. #################################
  287. # packetcache-servfail-ttl maximum number of seconds to keep a cached servfail entry in packetcache
  288. #
  289. # packetcache-servfail-ttl=60
  290. #################################
  291. # packetcache-ttl maximum number of seconds to keep a cached entry in packetcache
  292. #
  293. # packetcache-ttl=3600
  294. #################################
  295. # pdns-distributes-queries If PowerDNS itself should distribute queries over threads
  296. #
  297. # pdns-distributes-queries=yes
  298. #################################
  299. # processes Launch this number of processes (EXPERIMENTAL, DO NOT CHANGE)
  300. #
  301. # processes=1
  302. #################################
  303. # query-local-address Source IP address for sending queries
  304. #
  305. # query-local-address=0.0.0.0
  306. #################################
  307. # query-local-address6 Source IPv6 address for sending queries. IF UNSET, IPv6 WILL NOT BE USED FOR OUTGOING QUERIES
  308. #
  309. # query-local-address6=
  310. #################################
  311. # quiet Suppress logging of questions and answers
  312. #
  313. # quiet=
  314. #################################
  315. # reuseport Enable SO_REUSEPORT allowing multiple recursors processes to listen to 1 address
  316. #
  317. # reuseport=no
  318. #################################
  319. # root-nx-trust If set, believe that an NXDOMAIN from the root means the TLD does not exist
  320. #
  321. # root-nx-trust=yes
  322. #################################
  323. # security-poll-suffix Domain name from which to query security update notifications
  324. #
  325. # security-poll-suffix=secpoll.powerdns.com.
  326. #################################
  327. # serve-rfc1918 If we should be authoritative for RFC 1918 private IP space
  328. #
  329. # serve-rfc1918=yes
  330. #################################
  331. # server-down-max-fails Maximum number of consecutive timeouts (and unreachables) to mark a server as down ( 0 => disabled )
  332. #
  333. # server-down-max-fails=64
  334. #################################
  335. # server-down-throttle-time Number of seconds to throttle all queries to a server after being marked as down
  336. #
  337. # server-down-throttle-time=60
  338. #################################
  339. # server-id Returned when queried for 'id.server' TXT or NSID, defaults to hostname
  340. #
  341. # server-id=
  342. #################################
  343. # setgid If set, change group id to this gid for more security
  344. #
  345. # setgid=
  346. #################################
  347. # setuid If set, change user id to this uid for more security
  348. #
  349. # setuid=
  350. #################################
  351. # signature-inception-skew Allow the signture inception to be off by this number of seconds
  352. #
  353. # signature-inception-skew=0
  354. #################################
  355. # single-socket If set, only use a single socket for outgoing queries
  356. #
  357. # single-socket=off
  358. #################################
  359. # snmp-agent If set, register as an SNMP agent
  360. #
  361. # snmp-agent=no
  362. #################################
  363. # snmp-master-socket If set and snmp-agent is set, the socket to use to register to the SNMP master
  364. #
  365. # snmp-master-socket=
  366. #################################
  367. # soa-minimum-ttl Don't change
  368. #
  369. # soa-minimum-ttl=0
  370. #################################
  371. # socket-dir Where the controlsocket will live, /var/run when unset and not chrooted
  372. #
  373. # socket-dir=
  374. #################################
  375. # socket-group Group of socket
  376. #
  377. # socket-group=
  378. #################################
  379. # socket-mode Permissions for socket
  380. #
  381. # socket-mode=
  382. #################################
  383. # socket-owner Owner of socket
  384. #
  385. # socket-owner=
  386. #################################
  387. # spoof-nearmiss-max If non-zero, assume spoofing after this many near misses
  388. #
  389. # spoof-nearmiss-max=20
  390. #################################
  391. # stack-size stack size per mthread
  392. #
  393. # stack-size=200000
  394. #################################
  395. # statistics-interval Number of seconds between printing of recursor statistics, 0 to disable
  396. #
  397. # statistics-interval=1800
  398. #################################
  399. # stats-ringbuffer-entries maximum number of packets to store statistics for
  400. #
  401. # stats-ringbuffer-entries=10000
  402. #################################
  403. # tcp-fast-open Enable TCP Fast Open support on the listening sockets, using the supplied numerical value as the queue size
  404. #
  405. # tcp-fast-open=0
  406. #################################
  407. # threads Launch this number of threads
  408. #
  409. # threads=2
  410. #################################
  411. # trace if we should output heaps of logging. set to 'fail' to only log failing domains
  412. #
  413. # trace=off
  414. #################################
  415. # udp-truncation-threshold Maximum UDP response size before we truncate
  416. #
  417. # udp-truncation-threshold=1680
  418. #################################
  419. # use-incoming-edns-subnet Pass along received EDNS Client Subnet information
  420. #
  421. # use-incoming-edns-subnet=no
  422. #################################
  423. # version-string string reported on version.pdns or version.bind
  424. #
  425. # version-string=PowerDNS Recursor 4.1.13 (built Jun 14 2019 10:58:59 by xreaper@nimbus.for-no-reason.net)
  426. #################################
  427. # webserver Start a webserver (for REST API)
  428. #
  429. # webserver=no
  430. #################################
  431. # webserver-address IP Address of webserver to listen on
  432. #
  433. # webserver-address=127.0.0.1
  434. #################################
  435. # webserver-allow-from Webserver access is only allowed from these subnets
  436. #
  437. # webserver-allow-from=127.0.0.1,::1
  438. #################################
  439. # webserver-password Password required for accessing the webserver
  440. #
  441. # webserver-password=
  442. #################################
  443. # webserver-port Port of webserver to listen on
  444. #
  445. # webserver-port=8082
  446. #################################
  447. # write-pid Write a PID file
  448. #
  449. # write-pid=yes