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.

pdns.conf 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. # Autogenerated configuration file template
  2. #################################
  3. # 8bit-dns Allow 8bit dns queries
  4. #
  5. # 8bit-dns=no
  6. #################################
  7. # allow-axfr-ips Allow zonetransfers only to these subnets
  8. #
  9. allow-axfr-ips=PDNS_ALLOW_AXFR_IPS
  10. #################################
  11. # allow-dnsupdate-from A global setting to allow DNS updates from these IP ranges.
  12. #
  13. allow-dnsupdate-from=PDNS_ALLOW_DNSUPDATE_FROM
  14. #################################
  15. # allow-notify-from Allow AXFR NOTIFY from these IP ranges. If empty, drop all incoming notifies.
  16. #
  17. allow-notify-from=PDNS_ALLOW_NOTIFY_FROM
  18. #################################
  19. # allow-recursion List of subnets that are allowed to recurse
  20. #
  21. allow-recursion=PDNS_ALLOW_RECURSION
  22. #################################
  23. # allow-unsigned-notify Allow unsigned notifications for TSIG secured domains
  24. #
  25. # allow-unsigned-notify=yes
  26. #################################
  27. # allow-unsigned-supermaster Allow supermasters to create zones without TSIG signed NOTIFY
  28. #
  29. # allow-unsigned-supermaster=yes
  30. #################################
  31. # also-notify When notifying a domain, also notify these nameservers
  32. #
  33. also-notify=PDNS_ALSO_NOTIFY
  34. #################################
  35. # any-to-tcp Answer ANY queries with tc=1, shunting to TCP
  36. #
  37. # any-to-tcp=no
  38. #################################
  39. # api Enable/disable the REST API
  40. #
  41. api=yes
  42. #################################
  43. # api-key Static pre-shared authentication key for access to the REST API
  44. #
  45. api-key=PDNS_API_KEY
  46. #################################
  47. # api-logfile Location of the server logfile (used by the REST API)
  48. #
  49. # api-logfile=/var/log/pdns.log
  50. #################################
  51. # api-readonly Disallow data modification through the REST API when set
  52. #
  53. api-readonly=no
  54. #################################
  55. # cache-ttl Seconds to store packets in the PacketCache
  56. #
  57. # cache-ttl=20
  58. #################################
  59. # carbon-interval Number of seconds between carbon (graphite) updates
  60. #
  61. # carbon-interval=30
  62. #################################
  63. # carbon-ourname If set, overrides our reported hostname for carbon stats
  64. #
  65. # carbon-ourname=
  66. #################################
  67. # carbon-server If set, send metrics in carbon (graphite) format to this server
  68. #
  69. # carbon-server=
  70. #################################
  71. # chroot If set, chroot to this directory for more security
  72. #
  73. # chroot=
  74. #################################
  75. # config-dir Location of configuration directory (pdns.conf)
  76. #
  77. config-dir=/etc/powerdns
  78. #################################
  79. # config-name Name of this virtual configuration - will rename the binary image
  80. #
  81. # config-name=
  82. #################################
  83. # control-console Debugging switch - don't use
  84. #
  85. # control-console=no
  86. #################################
  87. # daemon Operate as a daemon
  88. #
  89. # daemon=no
  90. #################################
  91. # default-ksk-algorithms Default KSK algorithms
  92. #
  93. # default-ksk-algorithms=ecdsa256
  94. #################################
  95. # default-ksk-size Default KSK size (0 means default)
  96. #
  97. # default-ksk-size=0
  98. #################################
  99. # default-soa-edit Default SOA-EDIT value
  100. #
  101. # default-soa-edit=
  102. #################################
  103. # default-soa-edit-signed Default SOA-EDIT value for signed zones
  104. #
  105. # default-soa-edit-signed=
  106. #################################
  107. # default-soa-mail mail address to insert in the SOA record if none set in the backend
  108. #
  109. # default-soa-mail=
  110. #################################
  111. # default-soa-name name to insert in the SOA record if none set in the backend
  112. #
  113. # default-soa-name=a.misconfigured.powerdns.server
  114. #################################
  115. # default-ttl Seconds a result is valid if not set otherwise
  116. #
  117. # default-ttl=3600
  118. #################################
  119. # default-zsk-algorithms Default ZSK algorithms
  120. #
  121. # default-zsk-algorithms=
  122. #################################
  123. # default-zsk-size Default ZSK size (0 means default)
  124. #
  125. # default-zsk-size=0
  126. #################################
  127. # direct-dnskey Fetch DNSKEY RRs from backend during DNSKEY synthesis
  128. #
  129. # direct-dnskey=no
  130. #################################
  131. # disable-axfr Disable zonetransfers but do allow TCP queries
  132. #
  133. disable-axfr=no
  134. #################################
  135. # disable-axfr-rectify Disable the rectify step during an outgoing AXFR. Only required for regression testing.
  136. #
  137. # disable-axfr-rectify=no
  138. #################################
  139. # disable-syslog Disable logging to syslog, useful when running inside a supervisor that logs stdout
  140. #
  141. # disable-syslog=no
  142. #################################
  143. # disable-tcp Do not listen to TCP queries
  144. #
  145. # disable-tcp=no
  146. #################################
  147. # distributor-threads Default number of Distributor (backend) threads to start
  148. #
  149. # distributor-threads=3
  150. #################################
  151. # dname-processing If we should support DNAME records
  152. #
  153. # dname-processing=no
  154. #################################
  155. # dnssec-key-cache-ttl Seconds to cache DNSSEC keys from the database
  156. #
  157. # dnssec-key-cache-ttl=30
  158. #################################
  159. # dnsupdate Enable/Disable DNS update (RFC2136) support. Default is no.
  160. #
  161. # dnsupdate=no
  162. #################################
  163. # do-ipv6-additional-processing Do AAAA additional processing
  164. #
  165. # do-ipv6-additional-processing=yes
  166. #################################
  167. # domain-metadata-cache-ttl Seconds to cache domain metadata from the database
  168. #
  169. # domain-metadata-cache-ttl=60
  170. #################################
  171. # edns-subnet-processing If we should act on EDNS Subnet options
  172. #
  173. # edns-subnet-processing=no
  174. #################################
  175. # entropy-source If set, read entropy from this file
  176. #
  177. # entropy-source=/dev/urandom
  178. #################################
  179. # experimental-lua-policy-script Lua script for the policy engine
  180. #
  181. # experimental-lua-policy-script=
  182. #################################
  183. # forward-dnsupdate A global setting to allow DNS update packages that are for a Slave domain, to be forwarded to the master.
  184. #
  185. # forward-dnsupdate=yes
  186. #################################
  187. # guardian Run within a guardian process
  188. #
  189. guardian=yes
  190. #################################
  191. # include-dir Include *.conf files from this directory
  192. #
  193. # include-dir=
  194. include-dir=/etc/powerdns/pdns.d
  195. #################################
  196. # launch Which backends to launch and order to query them in
  197. #
  198. # launch=
  199. launch=
  200. #################################
  201. # load-modules Load this module - supply absolute or relative path
  202. #
  203. # load-modules=
  204. #################################
  205. # local-address Local IP addresses to which we bind
  206. #
  207. local-address=0.0.0.0
  208. #################################
  209. # local-address-nonexist-fail Fail to start if one or more of the local-address's do not exist on this server
  210. #
  211. # local-address-nonexist-fail=yes
  212. #################################
  213. # local-ipv6 Local IP address to which we bind
  214. #
  215. # local-ipv6=::
  216. #################################
  217. # local-ipv6-nonexist-fail Fail to start if one or more of the local-ipv6 addresses do not exist on this server
  218. #
  219. # local-ipv6-nonexist-fail=yes
  220. #################################
  221. # local-port The port on which we listen
  222. #
  223. # local-port=53
  224. #################################
  225. # log-dns-details If PDNS should log DNS non-erroneous details
  226. #
  227. # log-dns-details=no
  228. #################################
  229. # log-dns-queries If PDNS should log all incoming DNS queries
  230. #
  231. # log-dns-queries=no
  232. #################################
  233. # logging-facility Log under a specific facility
  234. #
  235. # logging-facility=
  236. #################################
  237. # loglevel Amount of logging. Higher is more. Do not set below 3
  238. #
  239. # loglevel=4
  240. #################################
  241. # lua-prequery-script Lua script with prequery handler (DO NOT USE)
  242. #
  243. # lua-prequery-script=
  244. #################################
  245. # master Act as a master
  246. #
  247. master=yes
  248. #################################
  249. # max-cache-entries Maximum number of cache entries
  250. #
  251. # max-cache-entries=1000000
  252. #################################
  253. # max-ent-entries Maximum number of empty non-terminals in a zone
  254. #
  255. # max-ent-entries=100000
  256. #################################
  257. # max-nsec3-iterations Limit the number of NSEC3 hash iterations
  258. #
  259. # max-nsec3-iterations=500
  260. #################################
  261. # max-queue-length Maximum queuelength before considering situation lost
  262. #
  263. # max-queue-length=5000
  264. #################################
  265. # max-signature-cache-entries Maximum number of signatures cache entries
  266. #
  267. # max-signature-cache-entries=
  268. #################################
  269. # max-tcp-connections Maximum number of TCP connections
  270. #
  271. # max-tcp-connections=20
  272. #################################
  273. # module-dir Default directory for modules
  274. #
  275. #################################
  276. # negquery-cache-ttl Seconds to store negative query results in the QueryCache
  277. #
  278. # negquery-cache-ttl=60
  279. #################################
  280. # no-shuffle Set this to prevent random shuffling of answers - for regression testing
  281. #
  282. # no-shuffle=off
  283. #################################
  284. # non-local-bind Enable binding to non-local addresses by using FREEBIND / BINDANY socket options
  285. #
  286. # non-local-bind=no
  287. #################################
  288. # only-notify Only send AXFR NOTIFY to these IP addresses or netmasks
  289. #
  290. # only-notify=0.0.0.0/0,::/0
  291. #################################
  292. # out-of-zone-additional-processing Do out of zone additional processing
  293. #
  294. # out-of-zone-additional-processing=yes
  295. #################################
  296. # outgoing-axfr-expand-alias Expand ALIAS records during outgoing AXFR
  297. #
  298. # outgoing-axfr-expand-alias=no
  299. #################################
  300. # overload-queue-length Maximum queuelength moving to packetcache only
  301. #
  302. # overload-queue-length=0
  303. #################################
  304. # prevent-self-notification Don't send notifications to what we think is ourself
  305. #
  306. # prevent-self-notification=yes
  307. #################################
  308. # query-cache-ttl Seconds to store query results in the QueryCache
  309. #
  310. # query-cache-ttl=20
  311. #################################
  312. # query-local-address Source IP address for sending queries
  313. #
  314. # query-local-address=0.0.0.0
  315. #################################
  316. # query-local-address6 Source IPv6 address for sending queries
  317. #
  318. # query-local-address6=::
  319. #################################
  320. # query-logging Hint backends that queries should be logged
  321. #
  322. # query-logging=no
  323. #################################
  324. # queue-limit Maximum number of milliseconds to queue a query
  325. #
  326. # queue-limit=1500
  327. #################################
  328. # receiver-threads Default number of receiver threads to start
  329. #
  330. # receiver-threads=1
  331. #################################
  332. # recursive-cache-ttl Seconds to store packets for recursive queries in the PacketCache
  333. #
  334. # recursive-cache-ttl=10
  335. #################################
  336. # recursor If recursion is desired, IP address of a recursing nameserver
  337. #
  338. recursor=PDNS_RECURSOR_HOST
  339. #################################
  340. # retrieval-threads Number of AXFR-retrieval threads for slave operation
  341. #
  342. # retrieval-threads=2
  343. #################################
  344. # reuseport Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket
  345. #
  346. # reuseport=no
  347. #################################
  348. # security-poll-suffix Domain name from which to query security update notifications
  349. #
  350. # security-poll-suffix=secpoll.powerdns.com.
  351. #################################
  352. # server-id Returned when queried for 'server.id' TXT or NSID, defaults to hostname - disabled or custom
  353. #
  354. # server-id=
  355. #################################
  356. # setgid If set, change group id to this gid for more security
  357. #
  358. setgid=pdns
  359. #################################
  360. # setuid If set, change user id to this uid for more security
  361. #
  362. setuid=pdns
  363. #################################
  364. # signing-threads Default number of signer threads to start
  365. #
  366. # signing-threads=3
  367. #################################
  368. # slave Act as a slave
  369. #
  370. # slave=no
  371. #################################
  372. # slave-cycle-interval Schedule slave freshness checks once every .. seconds
  373. #
  374. # slave-cycle-interval=60
  375. #################################
  376. # slave-renotify If we should send out notifications for slaved updates
  377. #
  378. # slave-renotify=no
  379. #################################
  380. # soa-expire-default Default SOA expire
  381. #
  382. # soa-expire-default=604800
  383. #################################
  384. # soa-minimum-ttl Default SOA minimum ttl
  385. #
  386. # soa-minimum-ttl=3600
  387. #################################
  388. # soa-refresh-default Default SOA refresh
  389. #
  390. # soa-refresh-default=10800
  391. #################################
  392. # soa-retry-default Default SOA retry
  393. #
  394. # soa-retry-default=3600
  395. #################################
  396. # socket-dir Where the controlsocket will live, /var/run when unset and not chrooted
  397. #
  398. # socket-dir=
  399. #################################
  400. # tcp-control-address If set, PowerDNS can be controlled over TCP on this address
  401. #
  402. # tcp-control-address=
  403. #################################
  404. # tcp-control-port If set, PowerDNS can be controlled over TCP on this address
  405. #
  406. # tcp-control-port=53000
  407. #################################
  408. # tcp-control-range If set, remote control of PowerDNS is possible over these networks only
  409. #
  410. # tcp-control-range=127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10
  411. #################################
  412. # tcp-control-secret If set, PowerDNS can be controlled over TCP after passing this secret
  413. #
  414. # tcp-control-secret=
  415. #################################
  416. # traceback-handler Enable the traceback handler (Linux only)
  417. #
  418. # traceback-handler=yes
  419. #################################
  420. # trusted-notification-proxy IP address of incoming notification proxy
  421. #
  422. # trusted-notification-proxy=
  423. #################################
  424. # udp-truncation-threshold Maximum UDP response size before we truncate
  425. #
  426. # udp-truncation-threshold=1680
  427. #################################
  428. # version-string PowerDNS version in packets - full, anonymous, powerdns or custom
  429. #
  430. # version-string=full
  431. #################################
  432. # webserver Start a webserver for monitoring
  433. #
  434. webserver=yes
  435. #################################
  436. # webserver-address IP Address of webserver to listen on
  437. #
  438. webserver-address=0.0.0.0
  439. #################################
  440. # webserver-allow-from Webserver access is only allowed from these subnets
  441. #
  442. webserver-allow-from=0.0.0.0/0,::/0
  443. #################################
  444. # webserver-password Password required for accessing the webserver
  445. #
  446. webserver-password=PDNS_WEBSERVER_PASSWORD
  447. #################################
  448. # webserver-port Port of webserver to listen on
  449. #
  450. webserver-port=80
  451. #################################
  452. # webserver-print-arguments If the webserver should print arguments
  453. #
  454. webserver-print-arguments=yes
  455. #################################
  456. # write-pid Write a PID file
  457. #
  458. # write-pid=yes
  459. #################################
  460. # xfr-max-received-mbytes Maximum number of megabytes received from an incoming XFR
  461. #
  462. # xfr-max-received-mbytes=100