Advertisement
cetex

Untitled

Mar 17th, 2022
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. root@slave2:/home/vagrant# sudo su -
  2. root@slave2:/home/vagrant# add-apt-repository ppa:cz.nic-labs/knot-dns-latest
  3. root@slave2:/home/vagrant# apt-get update
  4. root@slave2:/home/vagrant# apt-get install knot
  5. root@slave2:/home/vagrant# systemd disable --now systemd-resolved
  6. root@slave2:/home/vagrant# echo "nameserver 8.8.4.4" > /etc/resolv.conf
  7. root@slave2:/home/vagrant# cat << EOF > /etc/knot/knot.conf
  8. server:
  9. rundir: "/run/knot"
  10. user: knot:knot
  11. listen: [ 0.0.0.0@53, ::@53 ]
  12.  
  13. log:
  14. - target: syslog
  15. any: debug
  16.  
  17. database:
  18. storage: "/var/lib/knot"
  19.  
  20. remote:
  21. - id: master
  22. address: 192.168.50.4
  23.  
  24. acl:
  25. - id: master_notify
  26. address: 192.168.50.4
  27. action: notify
  28.  
  29. template:
  30. - id: catz-reverse
  31. master: master
  32. acl: master_notify
  33.  
  34. zone:
  35. - domain: catalogzone.
  36. master: master
  37. acl: master_notify
  38. catalog-role: interpret
  39. catalog-template: catz-reverse
  40. EOF
  41. root@slave2:/home/vagrant# service knot restart
  42. root@slave2:/home/vagrant# journalctl -f -n -u knot.service
  43. Mar 17 10:52:14 slave2 systemd[1]: Starting Knot DNS server...
  44. Mar 17 10:52:14 slave2 knotc[9834]: Configuration is valid
  45. Mar 17 10:52:15 slave2 knotd[9845]: info: Knot DNS 3.1.6 starting
  46. Mar 17 10:52:15 slave2 knotd[9845]: info: loaded configuration file '/etc/knot/knot.conf', mapsize 512 MiB
  47. Mar 17 10:52:15 slave2 knotd[9845]: info: using UDP reuseport, incoming TCP Fast Open
  48. Mar 17 10:52:15 slave2 knotd[9845]: info: binding to interface 0.0.0.0@53
  49. Mar 17 10:52:15 slave2 knotd[9845]: info: binding to interface ::@53
  50. Mar 17 10:52:15 slave2 knotd[9845]: info: loading 1 zones
  51. Mar 17 10:52:15 slave2 knotd[9845]: info: [catalogzone.] zone will be loaded
  52. Mar 17 10:52:15 slave2 knotd[9845]: info: starting server
  53. Mar 17 10:52:15 slave2 knotd[9845]: info: [catalogzone.] failed to parse zone file '/var/lib/knot/catalogzone.zone' (not exists)
  54. Mar 17 10:52:15 slave2 knotd[9845]: info: [catalogzone.] zone will be bootstrapped
  55. Mar 17 10:52:15 slave2 knotd[9845]: info: server started in the foreground, PID 9845
  56. Mar 17 10:52:15 slave2 knotd[9845]: info: control, binding to '/run/knot/knot.sock'
  57. Mar 17 10:52:15 slave2 systemd[1]: Started Knot DNS server.
  58. Mar 17 10:52:15 slave2 knotd[9845]: info: [catalogzone.] AXFR, incoming, remote 192.168.50.4@53, started
  59. Mar 17 10:52:15 slave2 knotd[9845]: info: [catalogzone.] AXFR, incoming, remote 192.168.50.4@53, finished, 0.00 seconds, 1 messages, 11733 bytes
  60. Mar 17 10:52:15 slave2 knotd[9845]: info: [catalogzone.] catalog reloaded, 108 updates
  61. Mar 17 10:52:15 slave2 knotd[9845]: info: [catalogzone.] refresh, remote 192.168.50.4@53, zone updated, 0.00 seconds, serial none -> 2022031401
  62. Mar 17 10:52:15 slave2 knotd[9845]: info: [xx.xx.xx.in-addr.arpa.] zone will be loaded
  63. Mar 17 10:52:15 slave2 knotd[9845]: info: [xx.xx.xx.in-addr.arpa.] zone added from catalog
  64. Mar 17 10:52:15 slave2 knotd[9845]: info: [yy.yy.yy..in-addr.arpa.] zone will be loaded
  65. Mar 17 10:52:15 slave2 knotd[9845]: info: [yy.yy.yy.in-addr.arpa.] zone added from catalog
  66. Mar 17 10:52:15 slave2 knotd[9845]: info: [zz.zz.zz.in-addr.arpa.] zone will be loaded
  67. Mar 17 10:52:15 slave2 knotd[9845]: info: [zz.zz.zz.in-addr.arpa.] zone added from catalog
  68. Mar 17 10:52:15 slave2 knotd[9845]: info: [aa.aa.aa.in-addr.arpa.] failed to parse zone file '/var/lib/knot/aa.aa.aa.in-addr.arpa.zone' (not exists)
  69. ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement