auth.spec.pre.in 2.64 KB
Newer Older
1
{
Jelte Jansen's avatar
Jelte Jansen committed
2
  "module_spec": {
3
    "module_name": "Auth",
Jelte Jansen's avatar
Jelte Jansen committed
4
    "module_description": "Authoritative service",
5
    "config_data": [
6
      { "item_name": "database_file",
7
        "item_type": "string",
8
        "item_optional": true,
9
        "item_default": "@@LOCALSTATEDIR@@/@PACKAGE@/zone.sqlite3"
10
      },
11
      { "item_name": "datasources",
12 13 14
        "item_type": "list",
        "item_optional": true,
        "item_default": [],
Jelte Jansen's avatar
Jelte Jansen committed
15 16
        "list_item_spec":
        { "item_name": "list_element",
17
          "item_type": "map",
18
          "item_optional": false,
19
          "item_default": {},
Jelte Jansen's avatar
Jelte Jansen committed
20 21 22 23 24 25 26 27
          "map_item_spec": [
          { "item_name": "type",
            "item_type": "string",
            "item_optional": false,
            "item_default": ""
          },
          { "item_name": "class",
            "item_type": "string",
28
            "item_optional": false,
Jelte Jansen's avatar
Jelte Jansen committed
29 30 31 32 33 34 35 36 37 38
            "item_default": "IN"
          },
          { "item_name": "zones",
            "item_type": "list",
            "item_optional": false,
            "item_default": [],
            "list_item_spec":
            { "item_name": "list_element",
              "item_type": "map",
              "item_optional": true,
39
              "item_default": { "origin": "", "file": "" },
Jelte Jansen's avatar
Jelte Jansen committed
40 41 42 43 44 45 46 47 48 49 50 51 52
              "map_item_spec": [
              { "item_name": "origin",
                "item_type": "string",
                "item_optional": false,
                "item_default": ""
              },
              { "item_name": "file",
                "item_type": "string",
                "item_optional": false,
                "item_default": ""
              }]
            }
          }]
53
        }
54 55 56 57 58
      },
      { "item_name": "statistics-interval",
        "item_type": "integer",
        "item_optional": true,
        "item_default": 60
59
      }
60 61 62 63
    ],
    "commands": [
      {
        "command_name": "shutdown",
Jeremy C. Reed's avatar
Jeremy C. Reed committed
64
        "command_description": "Shut down authoritative DNS server",
65
        "command_args": []
66 67 68
      },
      {
        "command_name": "sendstats",
69
        "command_description": "Send data to a statistics module at once",
70
        "command_args": []
71 72 73
      },
      {
        "command_name": "loadzone",
JINMEI Tatuya's avatar
JINMEI Tatuya committed
74
        "command_description": "(Re)load a specified zone",
75 76 77 78 79 80 81 82 83 84 85 86 87 88
        "command_args": [
          {
            "item_name": "class", "item_type": "string",
            "item_optional": true, "item_default": "IN"
          },
	  {
            "item_name": "origin", "item_type": "string",
            "item_optional": false, "item_default": ""
          },
	  {
            "item_name": "datasrc", "item_type": "string",
            "item_optional": true, "item_default": "memory"
          }
        ]
89
      }
90
    ]
91 92
  }
}