sample1.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # This is an example configuration file for D2, Kea's DHCP-DDNS processor.
  2. # It supports updating two Forward DNS zones "four.example.com" and
  3. # "six.example.com"; and one Reverse DNS zone, "2.0.192.in-addr.arpa."
  4. {
  5. # ------------------ DHCP-DDNS ---------------------
  6. #
  7. "DhcpDdns":
  8. {
  9. # -------------- Global Parameters ----------------
  10. #
  11. # D2 will listen for update requests for Kea DHCP servers at 172.16.1.10
  12. # on port 53001. Maximum time to we will wait for a DNS server to
  13. # respond to us is 1000 ms.
  14. "ip_address": "172.16.1.10",
  15. "port": 53001,
  16. "dns_server_timeout" : 1000,
  17. #
  18. # ----------------- Forward DDNS ------------------
  19. #
  20. # 1. Zone - "four.example.com.
  21. # It uses TSIG, key name is "d2.md5.key"
  22. # It is served by one DNS server which listens for DDNS requests at
  23. # 172.16.1.1 on the default port 53 (standard DNS port)
  24. #
  25. # 2. Zone - "six.example.com."
  26. # It does not use TSIG.
  27. # It is server by one DNS server at "2001:db8:1::10" on port 7802
  28. "forward_ddns":
  29. {
  30. "ddns_domains":
  31. [
  32. # DdnsDomain for zone "four.example.com."
  33. {
  34. "name": "four.example.com.",
  35. "key_name": "d2.md5.key",
  36. "dns_servers":
  37. [
  38. {
  39. "ip_address": "172.16.1.1"
  40. }
  41. ]
  42. },
  43. # DdnsDomain for zone "six.example.com."
  44. {
  45. "name": "six.example.com.",
  46. "dns_servers":
  47. [
  48. {
  49. "ip_address": "2001:db8:1::10",
  50. "port": 7802
  51. }
  52. ]
  53. }
  54. ]
  55. },
  56. #
  57. # ----------------- Reverse DDNS ------------------
  58. #
  59. # We will update Reverse DNS for one zone "2.0.192.in-addr-arpa". It
  60. # uses TSIG with key "d2.sha1.key" and is served by two DNS servers:
  61. # one listening at "172.16.1.1" on 53001 and the other at "192.168.2.10".
  62. #
  63. "reverse_ddns":
  64. {
  65. "ddns_domains":
  66. [
  67. {
  68. "name": "2.0.192.in-addr.arpa.",
  69. "key_name": "d2.sha1.key",
  70. "dns_servers":
  71. [
  72. {
  73. "ip_address": "172.16.1.1",
  74. "port": 53001
  75. },
  76. {
  77. "ip_address": "192.168.2.10"
  78. }
  79. ]
  80. }
  81. ]
  82. },
  83. #
  84. # ------------------ TSIG keys ---------------------
  85. #
  86. # Each key has a name, an algorithm (HMAC-MD5, HMAC-SHA1, HMAC-SHA224...)
  87. # and a base-64 encoded shared secret.
  88. #
  89. "tsig_keys":
  90. [
  91. {
  92. "name": "d2.md5.key",
  93. "algorithm": "HMAC-MD5",
  94. "secret": "LSWXnfkKZjdPJI5QxlpnfQ=="
  95. },
  96. {
  97. "name": "d2.sha1.key",
  98. "algorithm": "HMAC-SHA1",
  99. "secret": "hRrp29wzUv3uzSNRLlY68w=="
  100. }
  101. ]
  102. }
  103. }