with-ddns.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It's a basic scenario with one IPv6 subnet configured. It is
  3. # assumed that one subnet (2001:db8:1::/64 is available directly
  4. # over ethX interface.
  5. { "Dhcp6":
  6. {
  7. # Kea is told to listen on ethX interface only.
  8. "interfaces-config": {
  9. "interfaces": [ "ethX" ]
  10. },
  11. # We need to specify the the database used to store leases. As of
  12. # September 2016, four database backends are supported: MySQL,
  13. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
  14. # We'll use memfile because it doesn't require any prior set up.
  15. "lease-database": {
  16. "type": "memfile",
  17. "lfc-interval": 3600
  18. },
  19. # Addresses will be assigned with preferred and valid lifetimes
  20. # being 3000 and 4000, respectively. Client is told to start
  21. # renewing after 1000 seconds. If the server does not respond
  22. # after 2000 seconds since the lease was granted, client is supposed
  23. # to start REBIND procedure (emergency renewal that allows switching
  24. # to a different server).
  25. "preferred-lifetime": 3000,
  26. "valid-lifetime": 4000,
  27. "renew-timer": 1000,
  28. "rebind-timer": 2000,
  29. # The following list defines subnets. Each subnet consists of at
  30. # least subnet and pool entries.
  31. "subnet6": [
  32. {
  33. "pools": [ { "pool": "2001:db8:1::/80" } ],
  34. "subnet": "2001:db8:1::/64",
  35. "interface": "ethX"
  36. }
  37. ],
  38. # Enable dynamic DNS updates
  39. "dhcp-ddns" : {
  40. "enable-updates" : true,
  41. "server-ip" : "3001::1",
  42. "server-port" : 3432,
  43. "sender-ip" : "3001::2",
  44. "sender-port" : 3433,
  45. "max-queue-size" : 2048,
  46. "ncr-protocol" : "UDP",
  47. "ncr-format" : "JSON",
  48. "always-include-fqdn" : true,
  49. "override-no-update" : true,
  50. "override-client-update" : true,
  51. "replace-client-name" : "when-present",
  52. "generated-prefix" : "test.prefix",
  53. "qualifying-suffix" : "test.suffix."
  54. }
  55. },
  56. # The following configures logging. It assumes that messages with at least
  57. # informational level (info, warn, error and fatal) should be logged to stdout.
  58. "Logging": {
  59. "loggers": [
  60. {
  61. "name": "kea-dhcp6",
  62. "output_options": [
  63. {
  64. "output": "stdout"
  65. }
  66. ],
  67. "debuglevel": 0,
  68. "severity": "INFO"
  69. }
  70. ]
  71. }
  72. }