]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5495] Missed example
authorFrancis Dupont <fdupont@isc.org>
Tue, 2 Jan 2018 09:49:11 +0000 (10:49 +0100)
committerFrancis Dupont <fdupont@isc.org>
Tue, 2 Jan 2018 09:49:11 +0000 (10:49 +0100)
doc/examples/ddns/comments.json [new file with mode: 0644]

diff --git a/doc/examples/ddns/comments.json b/doc/examples/ddns/comments.json
new file mode 100644 (file)
index 0000000..c6e7ee8
--- /dev/null
@@ -0,0 +1,59 @@
+// This is an example configuration file for D2, Kea's DHCP-DDNS processor.
+// It uses embedded (i.e., which will be included in configuration objects
+// and not stripped by at lexical analysis) comments.
+
+{
+"DhcpDdns":
+{
+
+    // Global scope
+    "comment": "A DHCP-DDNS server",
+    "ip-address": "172.16.1.10",
+    "port": 53001,
+    "dns-server-timeout" : 1000,
+
+    "forward-ddns":
+    {
+        "ddns-domains":
+        [
+            // In DDNS domain
+            {
+                "comment": "DdnsDomain for zone 'four.example.com.'",
+                "name": "four.example.com.",
+                "key-name": "d2.md5.key",
+                // In DNS server
+                "dns-servers":
+                [
+                    {
+                        "comment": "four.example.com. server",
+                        "ip-address": "172.16.1.1"
+                    }
+                ]
+            }
+        ]
+    },
+
+    // In TSIG key
+    "tsig-keys":
+    [
+        {
+            "comment": "four.example.com. key",
+            "name": "d2.md5.key",
+            "algorithm": "HMAC-MD5",
+            "secret": "LSWXnfkKZjdPJI5QxlpnfQ=="
+        }
+    ]
+},
+
+"Logging": {
+    // In loggers
+    "loggers": [
+        {
+            "comment": "A logger",
+            "name": "kea-dhcp-ddns"
+        }
+    ]
+}
+    
+
+}