Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.21 KB | None | 0 0
  1. :/etc/powerdns$ sudo cat pdns.conf
  2.  
  3. # Autogenerated configuration file template
  4.  
  5. #################################
  6.  
  7. # allow-axfr-ips If enabled, restrict zonetransfers to originate from these
  8.  
  9. # IP addresses
  10.  
  11. #
  12.  
  13. allow-axfr-ips=xxx.xx.xx.xx
  14.  
  15.  
  16.  
  17. #################################
  18.  
  19. # allow-recursion List of netmasks that are allowed to recurse
  20.  
  21. #
  22.  
  23. allow-recursion=127.0.0.1
  24.  
  25.  
  26.  
  27. #################################
  28.  
  29. # allow-recursion-override Local data even about hosts that don't exist will
  30.  
  31. # override the internet. (on/off)
  32.  
  33. #
  34.  
  35. # allow-recursion-override=
  36.  
  37.  
  38.  
  39. #################################
  40.  
  41. # cache-ttl Seconds to store packets in the PacketCache
  42.  
  43. #
  44.  
  45. # cache-ttl=20
  46.  
  47.  
  48.  
  49. #################################
  50.  
  51. # chroot If set, chroot to this directory for more security
  52.  
  53. #
  54.  
  55. # chroot=/var/spool/powerdns
  56.  
  57.  
  58.  
  59. #################################
  60.  
  61. # config-dir Location of configuration directory (pdns.conf)
  62.  
  63. #
  64.  
  65. config-dir=/etc/powerdns
  66.  
  67.  
  68.  
  69. #################################
  70.  
  71. # config-name Name of this virtual configuration - will rename the binary image
  72.  
  73. #
  74.  
  75. # config-name=
  76.  
  77.  
  78.  
  79. #################################
  80.  
  81. # control-console Debugging switch - don't use
  82.  
  83. #
  84.  
  85. # control-console=no
  86.  
  87.  
  88.  
  89. #################################
  90.  
  91. # daemon Operate as a daemon
  92.  
  93. #
  94.  
  95. daemon=yes
  96.  
  97.  
  98.  
  99. #################################
  100.  
  101. # default-soa-name name to insert in the SOA record if none set in the backend
  102.  
  103. #
  104.  
  105. # default-soa-name=a.misconfigured.powerdns.server
  106.  
  107.  
  108.  
  109. #################################
  110.  
  111. # disable-axfr Disable zonetransfers but do allow TCP queries
  112.  
  113. #
  114.  
  115. disable-axfr=no
  116.  
  117.  
  118.  
  119. #################################
  120.  
  121. # disable-tcp Do not listen to TCP queries
  122.  
  123. #
  124.  
  125. # disable-tcp=no
  126.  
  127.  
  128.  
  129. #################################
  130.  
  131. # distributor-threads Default number of Distributor (backend) threads to start
  132.  
  133. #
  134.  
  135. # distributor-threads=3
  136.  
  137.  
  138.  
  139. #################################
  140.  
  141. # fancy-records Process URL and MBOXFW records
  142.  
  143. #
  144.  
  145. # fancy-records=no
  146.  
  147.  
  148.  
  149. #################################
  150.  
  151. # guardian Run within a guardian process
  152.  
  153. #
  154.  
  155. guardian=yes
  156.  
  157.  
  158.  
  159. #################################
  160.  
  161. # launch Which backends to launch and order to query them in
  162.  
  163. #
  164.  
  165. # launch=
  166.  
  167.  
  168.  
  169. #################################
  170.  
  171. # load-modules Load this module - supply absolute or relative path
  172.  
  173. #
  174.  
  175. # load-modules=
  176.  
  177.  
  178.  
  179. #################################
  180.  
  181. # local-address Local IP address to which we bind
  182.  
  183. #
  184.  
  185. local-address=0.0.0.0
  186.  
  187.  
  188.  
  189. #################################
  190.  
  191. # local-ipv6 Local IP address to which we bind
  192.  
  193. #
  194.  
  195. # local-ipv6=
  196.  
  197.  
  198.  
  199. #################################
  200.  
  201. # local-port The port on which we listen
  202.  
  203. #
  204.  
  205. local-port=53
  206.  
  207.  
  208.  
  209. #################################
  210.  
  211. # log-dns-details If PDNS should log failed update requests
  212.  
  213. #
  214.  
  215. # log-dns-details=
  216.  
  217.  
  218.  
  219. #################################
  220.  
  221. # log-failed-updates If PDNS should log failed update requests
  222.  
  223. #
  224.  
  225. # log-failed-updates=
  226.  
  227.  
  228.  
  229. #################################
  230.  
  231. # logfile Logfile to use
  232.  
  233. #
  234.  
  235. logfile=/var/log/pdns.log
  236.  
  237.  
  238.  
  239. #################################
  240.  
  241. # logging-facility Log under a specific facility
  242.  
  243. #
  244.  
  245. # logging-facility=
  246.  
  247.  
  248.  
  249. #################################
  250.  
  251. # loglevel Amount of logging. Higher is more. Do not set below 3
  252.  
  253. #
  254.  
  255. # loglevel=4
  256.  
  257.  
  258.  
  259. #################################
  260.  
  261. # master Act as a master
  262.  
  263. #
  264.  
  265. master=yes
  266.  
  267.  
  268.  
  269. #################################
  270.  
  271. # max-queue-length Maximum queuelength before considering situation lost
  272.  
  273. #
  274.  
  275. # max-queue-length=5000
  276.  
  277.  
  278.  
  279. #################################
  280.  
  281. # max-tcp-connections Maximum number of TCP connections
  282.  
  283. #
  284.  
  285. # max-tcp-connections=10
  286.  
  287.  
  288.  
  289. #################################
  290.  
  291. # module-dir Default directory for modules
  292.  
  293. #
  294.  
  295. module-dir=/usr/lib/powerdns
  296.  
  297.  
  298.  
  299. #################################
  300.  
  301. # negquery-cache-ttl Seconds to store packets in the PacketCache
  302.  
  303. #
  304.  
  305. # negquery-cache-ttl=60
  306.  
  307.  
  308.  
  309. #################################
  310.  
  311. # out-of-zone-additional-processing Do out of zone additional processing
  312.  
  313. #
  314.  
  315. # out-of-zone-additional-processing=no
  316.  
  317.  
  318.  
  319. #################################
  320.  
  321. # query-cache-ttl Seconds to store packets in the PacketCache
  322.  
  323. #
  324.  
  325. # query-cache-ttl=20
  326.  
  327.  
  328.  
  329. #################################
  330.  
  331. # query-logging Hint backends that queries should be logged
  332.  
  333. #
  334.  
  335. # query-logging=no
  336.  
  337.  
  338.  
  339. #################################
  340.  
  341. # queue-limit Maximum number of milliseconds to queue a query
  342.  
  343. #
  344.  
  345. # queue-limit=1500
  346.  
  347.  
  348.  
  349. #################################
  350.  
  351. # query-local-address The IP address to use as a source address for sending
  352.  
  353. # queries.
  354.  
  355. # query-local-address=
  356.  
  357.  
  358.  
  359. #################################
  360.  
  361. # receiver-threads Number of receiver threads to launch
  362.  
  363. #
  364.  
  365. # receiver-threads=1
  366.  
  367.  
  368.  
  369. #################################
  370.  
  371. # recursive-cache-ttl Seconds to store packets in the PacketCache
  372.  
  373. #
  374.  
  375. # recursive-cache-ttl=10
  376.  
  377.  
  378.  
  379. #################################
  380.  
  381. # recursor If recursion is desired, IP address of a recursing nameserver
  382.  
  383. #
  384.  
  385. # recursor=
  386.  
  387.  
  388.  
  389. #################################
  390.  
  391. # setgid If set, change group id to this gid for more security
  392.  
  393. #
  394.  
  395. setgid=pdns
  396.  
  397.  
  398.  
  399. #################################
  400.  
  401. # setuid If set, change user id to this uid for more security
  402.  
  403. #
  404.  
  405. setuid=pdns
  406.  
  407.  
  408.  
  409. #################################
  410.  
  411. # skip-cname Do not perform CNAME indirection for each query
  412.  
  413. #
  414.  
  415. # skip-cname=no
  416.  
  417.  
  418.  
  419. #################################
  420.  
  421. # slave Act as a slave
  422.  
  423. #
  424.  
  425. # slave=no
  426.  
  427.  
  428.  
  429. #################################
  430.  
  431. # slave-cycle-interval Reschedule failed SOA serial checks once every .. seconds
  432.  
  433. #
  434.  
  435. # slave-cycle-interval=60
  436.  
  437.  
  438.  
  439. #################################
  440.  
  441. # smtpredirector Our smtpredir MX host
  442.  
  443. #
  444.  
  445. # smtpredirector=a.misconfigured.powerdns.smtp.server
  446.  
  447.  
  448.  
  449. #################################
  450.  
  451. # soa-minimum-ttl Default SOA mininum ttl
  452.  
  453. #
  454.  
  455. # soa-minimum-ttl=3600
  456.  
  457.  
  458.  
  459. #################################
  460.  
  461. # soa-refresh-default Default SOA refresh
  462.  
  463. #
  464.  
  465. # soa-refresh-default=10800
  466.  
  467.  
  468.  
  469. #################################
  470.  
  471. # soa-retry-default Default SOA retry
  472.  
  473. #
  474.  
  475. # soa-retry-default=3600
  476.  
  477.  
  478.  
  479. #################################
  480.  
  481. # soa-expire-default Default SOA expire
  482.  
  483. #
  484.  
  485. # soa-expire-default=604800
  486.  
  487.  
  488.  
  489. #################################
  490.  
  491. # soa-serial-offset Make sure that no SOA serial is less than this number
  492.  
  493. #
  494.  
  495. # soa-serial-offset=0
  496.  
  497.  
  498. #################################
  499.  
  500. # socket-dir Where the controlsocket will live
  501.  
  502. #
  503.  
  504. socket-dir=/var/run
  505.  
  506.  
  507. #################################
  508.  
  509. # strict-rfc-axfrs Perform strictly rfc compliant axfrs (very slow)
  510.  
  511. #
  512.  
  513. # strict-rfc-axfrs=no
  514.  
  515.  
  516.  
  517. #################################
  518.  
  519. # urlredirector Where we send hosts to that need to be url redirected
  520.  
  521. #
  522.  
  523. # urlredirector=127.0.0.1
  524.  
  525.  
  526.  
  527. #################################
  528.  
  529. # use-logfile Use a log file
  530.  
  531. #
  532.  
  533. # use-logfile=yes
  534.  
  535.  
  536. #################################
  537.  
  538. # webserver Start a webserver for monitoring
  539.  
  540. #
  541.  
  542. # webserver=no
  543.  
  544.  
  545. #################################
  546.  
  547. # webserver-address IP Address of webserver to listen on
  548.  
  549. #
  550.  
  551. # webserver-address=127.0.0.1
  552.  
  553.  
  554.  
  555. #################################
  556.  
  557. # webserver-password Password required for accessing the webserver
  558.  
  559. #
  560.  
  561. # webserver-password=
  562.  
  563.  
  564.  
  565. #################################
  566.  
  567. # webserver-port Port of webserver to listen on
  568.  
  569. #
  570.  
  571. # webserver-port=8081
  572.  
  573.  
  574.  
  575. #################################
  576.  
  577. # webserver-print-arguments If the webserver should print arguments
  578.  
  579. #
  580.  
  581. # webserver-print-arguments=no
  582.  
  583.  
  584.  
  585. #################################
  586.  
  587. # wildcard-url Process URL and MBOXFW records
  588.  
  589. #
  590.  
  591. # wildcard-url=no
  592.  
  593.  
  594.  
  595. #################################
  596.  
  597. # wildcards Honor wildcards in the database
  598.  
  599. #
  600.  
  601. # wildcards=
  602.  
  603.  
  604.  
  605. #################################
  606.  
  607. # version-string What should PowerDNS return for version
  608.  
  609. # allowed methods are anonymous / powerdns / full / custom
  610.  
  611. version-string=anonymous
  612.  
  613.  
  614.  
  615. include-dir=/etc/powerdns/pdns.d
  616.  
  617.  
  618.  
  619. # Enable and config API
  620.  
  621. experimental-json-interface=yes
  622.  
  623. experimental-api-key=NwY>kpVMEaDH8ib (not the real API key)
  624.  
  625. webserver=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement