Guest User

Untitled

a guest
Jan 26th, 2018
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. setuid=pdns-recursor
  2. setgid=pdns-recursor
  3. local-address=127.0.0.1
  4. local-port=5301
  5. hint-file=/etc/pdns-recursor/root.zone
  6. allow-from=127.0.0.1/8
  7.  
  8. setuid=pdns
  9. setgid=pdns
  10. launch=gmysql
  11. gmysql-host=127.0.0.1
  12. gmysql-user=powerdns_user
  13. gmysql-dbname=powerdns
  14. gmysql-password=
  15. allow-axfr-ips=127.0.0.1/8, 2.2.2.5/32
  16. cache-ttl=60
  17. control-console=no
  18. default-soa-name=ns2.example.ru
  19. default-soa-mail=support@example.ru
  20. default-ttl=3600
  21. disable-axfr=no
  22. local-port=5300
  23. local-address=127.0.0.1
  24. do-ipv6-additional-processing=yes
  25. log-dns-queries=yes
  26. logging-facility=0
  27. loglevel=4
  28. master=yes
  29. max-queue-length=5000
  30. max-tcp-connections=20
  31.  
  32. setLocal('127.0.0.1')
  33. addLocal('1.1.1.5')
  34. setACL({'0.0.0.0/0', '::/0'}) -- Allow all IPs access
  35. newServer({address='127.0.0.1:5300', pool='auth'})
  36. newServer({address='127.0.0.1:5301', pool='recursor'})
  37. recursive_ips = newNMG()
  38. recursive_ips:addMask('127.0.0.1/8')
  39. recursive_ips:addMask('1.1.1.0/24')
  40. recursive_ips:addMask('2.2.2.0/24')
  41. addAction(NetmaskGroupRule(recursive_ips), PoolAction('recursor'))
  42. addAction(AllRule(), PoolAction('auth'))
  43.  
  44. # dig ANY google123.com @1.1.1.5
  45.  
  46. ; <<>> DiG 9.9.4-RedHat-9.9.4-51.el7_4.1 <<>> ANY google123.com @1.1.1.5
  47. ;; global options: +cmd
  48. ;; Got answer:
  49. ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54293
  50. ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
  51.  
  52. ;; OPT PSEUDOSECTION:
  53. ; EDNS: version: 0, flags:; udp: 4096
  54. ;; QUESTION SECTION:
  55. ;google123.com. IN ANY
  56.  
  57. ;; AUTHORITY SECTION:
  58. com. 2118 IN SOA a.dns.ripn.net. hostmaster.ripn.net. 4032536 86400 14400 2592000 3600
  59.  
  60. ;; Query time: 64 msec
  61. ;; SERVER: 1.1.1.5#53(1.1.1.5)
  62. ;; WHEN: Sat Jan 27 01:11:38 MSK 2018
  63. ;; MSG SIZE rcvd: 102
  64.  
  65. #dig ANY google123.com @1.1.1.5
  66. ;; Truncated, retrying in TCP mode.
  67.  
  68. ; <<>> DiG 9.9.4-RedHat-9.9.4-51.el7_4.1 <<>> ANY google123.com @1.1.1.5
  69. ;; global options: +cmd
  70. ;; Got answer:
  71. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34025
  72. ;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 3
  73. ;; WARNING: recursion requested but not available
  74.  
  75. ;; OPT PSEUDOSECTION:
  76. ; EDNS: version: 0, flags:; udp: 1680
  77. ;; QUESTION SECTION:
  78. ;google123.com. IN ANY
  79.  
  80. ;; ANSWER SECTION:
  81. google123.com. 86400 IN A 1.1.1.1
  82. google123.com. 86400 IN NS ns1.example.ru.
  83. google123.com. 86400 IN NS ns2.example.ru.
  84. google123.com. 86400 IN SOA ns1.example.ru. hostmaster.example.ru. 2018012603 28800 7200 604800 86400
  85.  
  86. ;; ADDITIONAL SECTION:
  87. ns1.example.ru. 86400 IN A 1.1.1.5
  88. ns2.example.ru. 86400 IN A 2.2.2.5
  89.  
  90. ;; Query time: 3 msec
  91. ;; SERVER: 1.1.1.5#53(1.1.1.5)
  92. ;; WHEN: Fri Jan 26 23:16:29 CET 2018
  93. ;; MSG SIZE rcvd: 181
Add Comment
Please, Sign In to add comment