]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#649,!381] fixed ddns examples
authorThomas Markwalder <tmark@isc.org>
Thu, 1 Aug 2019 18:29:56 +0000 (14:29 -0400)
committerRazvan Becheriu <razvan@isc.org>
Fri, 2 Aug 2019 06:57:04 +0000 (09:57 +0300)
    Additional fixes said files.

doc/examples/ddns/comments.json
doc/examples/ddns/template.json

index b377a70544af009945a017fa0ca16342700df5e5..8726affd9a396068d91f308a7a5fa3b7fa9dca58 100644 (file)
@@ -55,7 +55,8 @@
     "loggers": [
         {
             "comment": "A logger",
-            "name": "kea-dhcp-ddns"
+            "name": "kea-dhcp-ddns",
+            "severity": "info"
         }
     ]
 }
index a3024bf364d527acc3c6965c1d46d0d2a26da175..17fcc776c79f4ec38e3d81ecae3a427acbd274c2 100644 (file)
@@ -1,9 +1,7 @@
 // This file may be used a template for constructing DHCP-DDNS JSON
 // configuration.
 //
-// Default values that may be omitted are '//' commented out.
-
-// If in a file by itself, it must start with a left-curly-bracket.
+// It must start with a left-curly-bracket.
 {
 
 "DhcpDdns" :
     {
         "ddns-domains" :
         [
-            {
-                "name" : "<zone name 1>",
+//            {
+//                "name" : "<zone name 1>",
 //                "key-name" : "<key name>",
-                "dns-servers" :
-                [
-                    {
-                        "ip-address" : "<ip address>"
+//                "dns-servers" :
+//                [
+//                    {
+//                        "ip-address" : "<ip address>"
 //                       ,"port" : 53
-                    }
+//                    }
 //                   ,
 //                   {
 //                       next DNS server for this DdnsDomain
 //                   }
 //                   :
-                ]
-            }
+//                ]
+//            }
 //           ,
 //           {
 //                next Forward DdnsDomain
     {
         "ddns-domains" :
         [
-            {
-                "name" : "<reverse zone name 1>",
+//            {
+//                "name" : "<reverse zone name 1>",
 //                "key-name" : "<key name>",
-                "dns-servers" :
-                [
-                    {
-                        "ip-address" : "<ip address>"
+//                "dns-servers" :
+//                [
+//                    {
+//                        "ip-address" : "<ip address>"
 //                        ,"port" : 53
-                    }
+//                    }
 //                   ,
 //                   {
 //                       next DNS server for this DdnsDomain
 //                   }
 //                   :
-                ]
-            }
+//                ]
+//            }
 //           ,
 //           {
 //                next Reverse DdnsDomain
 //
     "tsig-keys" :
     [
-        {
-            "name" : "<key name>",
-            "algorithm" : "<algorithm name>",
+//        {
+//            "name" : "<key name>",
+//            "algorithm" : "<algorithm name>",
 //            Valid values for algorithm are:    HMAC-MD5, HMAC-SHA1,
 //                                               HMAC-SHA224, HMAC-SHA256,
 //                                               HMAC-SHA384, HMAC-SHA512
 //           "digest-bits" : 256,
 //           Minimum truncated length in bits.
 //           Default 0 (means truncation is forbidden).
-            "secret" : "<shared secret value>"
-        }
+//            "secret" : "<shared secret value>"
+//        }
 //       ,
 //        {
 //                next TSIG Key
 //        }
     ]
+
+// Logging
+//    ,"loggers":
+//    [
+//        {
+//            "name": "kea-dhcp-ddns",
+//            "severity": "info"
+//        }
+//    ]
 }
 
-// If in a file by itself, it must end with an right-curly-bracket.
+// It must end with an right-curly-bracket.
 }