template.json 2.67 KB
Newer Older
1 2 3 4
// This file may be used a template for constructing DHCP-DDNS JSON
// configuration.
//
// Default values that may be omitted are '//' commented out.
5

6
// If in a file by itself, it must start with a left-curly-bracket.
7 8 9 10
{

"DhcpDdns" :
{
11 12 13 14 15 16 17 18 19 20 21
//
// --------------  Global Parameters ----------------
//
//    All of the global parameters have default values as shown.  If these
//    are satisfactory you may omit them.
//
//    "ip-address" : "127.0.0.1",
//    "port" : 53001,
//    "dns-server-timeout" : 100,
//    "ncr-protocol" : "UDP"
//    "ncr-format" : "JSON"
22

23 24 25
//
// ----------------- Forward DDNS  ------------------
//
26
    "forward-ddns" :
27
    {
28
        "ddns-domains" :
29 30 31
        [
            {
                "name" : "<zone name 1>",
32
//                "key-name" : "<key name>",
33
                "dns-servers" :
34 35
                [
                    {
36
                        "ip-address" : "<ip address>"
37
//                       ,"port" : 53
38
                    }
39 40 41 42 43
//                   ,
//                   {
//                       next DNS server for this DdnsDomain
//                   }
//                   :
44 45
                ]
            }
46 47 48 49 50
//           ,
//           {
//                next Forward DdnsDomain
//           }
//           :
51 52 53
        ]
    },

54 55 56
//
// ----------------- Reverse DDNS  ------------------
//
57
    "reverse-ddns" :
58
    {
59
        "ddns-domains" :
60 61 62
        [
            {
                "name" : "<reverse zone name 1>",
63
//                "key-name" : "<key name>",
64
                "dns-servers" :
65 66
                [
                    {
67
                        "ip-address" : "<ip address>"
68
//                        ,"port" : 53
69
                    }
70 71 72 73 74
//                   ,
//                   {
//                       next DNS server for this DdnsDomain
//                   }
//                   :
75 76
                ]
            }
77 78 79 80 81
//           ,
//           {
//                next Reverse DdnsDomain
//           }
//           :
82 83
        ]
    },
84 85 86
//
// ------------------ TSIG keys ---------------------
//
87
    "tsig-keys" :
88 89 90 91
    [
        {
            "name" : "<key name>",
            "algorithm" : "<algorithm name>",
92 93 94 95 96 97
//            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).
98 99
            "secret" : "<shared secret value>"
        }
100 101 102 103
//       ,
//        {
//                next TSIG Key
//        }
104 105 106
    ]
}

107
// If in a file by itself, it must end with an right-curly-bracket.
108
}