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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  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=yes
  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. #################################
  200. # load-modules Load this module - supply absolute or relative path
  201. #
  202. # load-modules=
  203. #################################
  204. # local-address Local IP addresses to which we bind
  205. #
  206. local-address=0.0.0.0
  207. #################################
  208. # local-address-nonexist-fail Fail to start if one or more of the local-address's do not exist on this server
  209. #
  210. # local-address-nonexist-fail=yes
  211. #################################
  212. # local-ipv6 Local IP address to which we bind
  213. #
  214. # local-ipv6=::
  215. #################################
  216. # local-ipv6-nonexist-fail Fail to start if one or more of the local-ipv6 addresses do not exist on this server
  217. #
  218. # local-ipv6-nonexist-fail=yes
  219. #################################
  220. # local-port The port on which we listen
  221. #
  222. # local-port=53
  223. #################################
  224. # log-dns-details If PDNS should log DNS non-erroneous details
  225. #
  226. # log-dns-details=no
  227. #################################
  228. # log-dns-queries If PDNS should log all incoming DNS queries
  229. #
  230. # log-dns-queries=no
  231. #################################
  232. # logging-facility Log under a specific facility
  233. #
  234. # logging-facility=
  235. #################################
  236. # loglevel Amount of logging. Higher is more. Do not set below 3
  237. #
  238. # loglevel=4
  239. #################################
  240. # lua-prequery-script Lua script with prequery handler (DO NOT USE)
  241. #
  242. # lua-prequery-script=
  243. #################################
  244. # master Act as a master
  245. #
  246. master=yes
  247. #################################
  248. # max-cache-entries Maximum number of cache entries
  249. #
  250. # max-cache-entries=1000000
  251. #################################
  252. # max-ent-entries Maximum number of empty non-terminals in a zone
  253. #
  254. # max-ent-entries=100000
  255. #################################
  256. # max-nsec3-iterations Limit the number of NSEC3 hash iterations
  257. #
  258. # max-nsec3-iterations=500
  259. #################################
  260. # max-queue-length Maximum queuelength before considering situation lost
  261. #
  262. # max-queue-length=5000
  263. #################################
  264. # max-signature-cache-entries Maximum number of signatures cache entries
  265. #
  266. # max-signature-cache-entries=
  267. #################################
  268. # max-tcp-connections Maximum number of TCP connections
  269. #
  270. # max-tcp-connections=20
  271. #################################
  272. # module-dir Default directory for modules
  273. #
  274. #################################
  275. # negquery-cache-ttl Seconds to store negative query results in the QueryCache
  276. #
  277. # negquery-cache-ttl=60
  278. #################################
  279. # no-shuffle Set this to prevent random shuffling of answers - for regression testing
  280. #
  281. # no-shuffle=off
  282. #################################
  283. # non-local-bind Enable binding to non-local addresses by using FREEBIND / BINDANY socket options
  284. #
  285. # non-local-bind=no
  286. #################################
  287. # only-notify Only send AXFR NOTIFY to these IP addresses or netmasks
  288. #
  289. # only-notify=0.0.0.0/0,::/0
  290. #################################
  291. # out-of-zone-additional-processing Do out of zone additional processing
  292. #
  293. # out-of-zone-additional-processing=yes
  294. #################################
  295. # outgoing-axfr-expand-alias Expand ALIAS records during outgoing AXFR
  296. #
  297. # outgoing-axfr-expand-alias=no
  298. #################################
  299. # overload-queue-length Maximum queuelength moving to packetcache only
  300. #
  301. # overload-queue-length=0
  302. #################################
  303. # prevent-self-notification Don't send notifications to what we think is ourself
  304. #
  305. # prevent-self-notification=yes
  306. #################################
  307. # query-cache-ttl Seconds to store query results in the QueryCache
  308. #
  309. # query-cache-ttl=20
  310. #################################
  311. # query-local-address Source IP address for sending queries
  312. #
  313. # query-local-address=0.0.0.0
  314. #################################
  315. # query-local-address6 Source IPv6 address for sending queries
  316. #
  317. # query-local-address6=::
  318. #################################
  319. # query-logging Hint backends that queries should be logged
  320. #
  321. # query-logging=no
  322. #################################
  323. # queue-limit Maximum number of milliseconds to queue a query
  324. #
  325. # queue-limit=1500
  326. #################################
  327. # receiver-threads Default number of receiver threads to start
  328. #
  329. # receiver-threads=1
  330. #################################
  331. # recursive-cache-ttl Seconds to store packets for recursive queries in the PacketCache
  332. #
  333. # recursive-cache-ttl=10
  334. #################################
  335. # recursor If recursion is desired, IP address of a recursing nameserver
  336. #
  337. recursor=PDNS_RECURSOR_HOST
  338. #################################
  339. # retrieval-threads Number of AXFR-retrieval threads for slave operation
  340. #
  341. # retrieval-threads=2
  342. #################################
  343. # reuseport Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket
  344. #
  345. # reuseport=no
  346. #################################
  347. # security-poll-suffix Domain name from which to query security update notifications
  348. #
  349. # security-poll-suffix=secpoll.powerdns.com.
  350. #################################
  351. # server-id Returned when queried for 'server.id' TXT or NSID, defaults to hostname - disabled or custom
  352. #
  353. # server-id=
  354. #################################
  355. # setgid If set, change group id to this gid for more security
  356. #
  357. setgid=pdns
  358. #################################
  359. # setuid If set, change user id to this uid for more security
  360. #
  361. setuid=pdns
  362. #################################
  363. # signing-threads Default number of signer threads to start
  364. #
  365. # signing-threads=3
  366. #################################
  367. # slave Act as a slave
  368. #
  369. # slave=no
  370. #################################
  371. # slave-cycle-interval Schedule slave freshness checks once every .. seconds
  372. #
  373. # slave-cycle-interval=60
  374. #################################
  375. # slave-renotify If we should send out notifications for slaved updates
  376. #
  377. # slave-renotify=no
  378. #################################
  379. # soa-expire-default Default SOA expire
  380. #
  381. # soa-expire-default=604800
  382. #################################
  383. # soa-minimum-ttl Default SOA minimum ttl
  384. #
  385. # soa-minimum-ttl=3600
  386. #################################
  387. # soa-refresh-default Default SOA refresh
  388. #
  389. # soa-refresh-default=10800
  390. #################################
  391. # soa-retry-default Default SOA retry
  392. #
  393. # soa-retry-default=3600
  394. #################################
  395. # socket-dir Where the controlsocket will live, /var/run when unset and not chrooted
  396. #
  397. # socket-dir=
  398. #################################
  399. # tcp-control-address If set, PowerDNS can be controlled over TCP on this address
  400. #
  401. # tcp-control-address=
  402. #################################
  403. # tcp-control-port If set, PowerDNS can be controlled over TCP on this address
  404. #
  405. # tcp-control-port=53000
  406. #################################
  407. # tcp-control-range If set, remote control of PowerDNS is possible over these networks only
  408. #
  409. # 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
  410. #################################
  411. # tcp-control-secret If set, PowerDNS can be controlled over TCP after passing this secret
  412. #
  413. # tcp-control-secret=
  414. #################################
  415. # traceback-handler Enable the traceback handler (Linux only)
  416. #
  417. # traceback-handler=yes
  418. #################################
  419. # trusted-notification-proxy IP address of incoming notification proxy
  420. #
  421. # trusted-notification-proxy=
  422. #################################
  423. # udp-truncation-threshold Maximum UDP response size before we truncate
  424. #
  425. # udp-truncation-threshold=1680
  426. #################################
  427. # version-string PowerDNS version in packets - full, anonymous, powerdns or custom
  428. #
  429. # version-string=full
  430. #################################
  431. # webserver Start a webserver for monitoring
  432. #
  433. webserver=yes
  434. #################################
  435. # webserver-address IP Address of webserver to listen on
  436. #
  437. webserver-address=0.0.0.0
  438. #################################
  439. # webserver-allow-from Webserver access is only allowed from these subnets
  440. #
  441. webserver-allow-from=0.0.0.0/0,::/0
  442. #################################
  443. # webserver-password Password required for accessing the webserver
  444. #
  445. webserver-password=PDNS_WEBSERVER_PASSWORD
  446. #################################
  447. # webserver-port Port of webserver to listen on
  448. #
  449. webserver-port=80
  450. #################################
  451. # webserver-print-arguments If the webserver should print arguments
  452. #
  453. webserver-print-arguments=yes
  454. #################################
  455. # write-pid Write a PID file
  456. #
  457. # write-pid=yes
  458. #################################
  459. # xfr-max-received-mbytes Maximum number of megabytes received from an incoming XFR
  460. #
  461. # xfr-max-received-mbytes=100
  462. # PostgreSQL Configuration
  463. #
  464. # Launch gpgsql backend
  465. launch+=gpgsql:main
  466. # gpgsql parameters
  467. gpgsql-main-host=POSTGRES_HOST
  468. gpgsql-main-port=
  469. gpgsql-main-dbname=POSTGRES_DB
  470. gpgsql-main-user=POSTGRES_USER
  471. gpgsql-main-password=POSTGRES_PASSWORD
  472. gpgsql-main-dnssec=yes
  473. #loglevel=9
  474. #log-dns-details=yes
  475. #log-dns-queries=yes
  476. #query-logging=yes