Webalizer
[hcoop/domtool2.git] / lib / domain.dtl
CommitLineData
095de39e
AC
1{{Configuring shared daemons with respect to a particular Internet domain name}}
2
f8dfbbcc
AC
3extern type no_spaces;
4{{Any string with no space characters}}
5
d5754b53
AC
6extern type no_newlines;
7{{Any string with no newline characters}}
8
6ae327f8
AC
9extern type ip;
10{{An IP address}}
11
12extern type host;
13{{A hostname; that is, (more or less) an alphanumeric string}}
14
095de39e
AC
15extern type domain;
16{{An Internet domain name}}
17
12adf55a
AC
18extern type your_domain;
19{{A domain that you're allowed to configure}}
20
edd38024
AC
21extern type your_domain_host;
22{{Some host (as a fully-qualified domain name) in one of your domains}}
23
e0b0abd2
AC
24extern type node;
25{{The name of a server controlled by domtool}}
26
2aeb9eec
AC
27extern type user;
28extern type group;
29{{UNIX users and groups}}
30
8a7c40fa
AC
31extern type your_user;
32extern type your_group;
12adf55a
AC
33{{UNIX users and groups that you're allowed to run as}}
34
8a7c40fa
AC
35extern type your_path;
36{{A filesystem path that you're allowed to use.
37 The set of permitted values is generated from a set of roots by closing it
38 under the subdirectory relation.}}
12adf55a 39
095de39e
AC
40context Domain;
41{{Configuration directives specific to an Internet domain}}
42
6ae327f8
AC
43extern type serial;
44{{Domain zone serial numbers}}
45extern val serialAuto : serial;
46{{Whenever DNS data changes, choose a sensible serial number automatically.}
47extern val serialConst : int -> serial;
48{{Use this particular serial number.}}
49
50extern type soa;
51{{DNS start-of-authority record}}
52extern val soa : domain -> serial -> int -> int -> int -> int -> soa;
53
e0b0abd2
AC
54extern type master;
55{{Information on the master DNS server for a domain}}
56extern val externalMaster : ip -> master;
57{{A server not controlled by domtool will serve as master.}}
58extern val internalMaster : node -> master;
59{{A server controlled by domtool will serve as master.}}
60
6ae327f8
AC
61extern type dnsKind;
62{{How should DNS for this domain be handled?}}
e0b0abd2
AC
63extern val useDns : soa -> master -> [node] -> dnsKind;
64{{We do want DNS services for this domain. Specify the SOA record, information
65 on the server in charge of zone data, and a list of slave servers.}}
6ae327f8 66extern val noDns : dnsKind;
e0b0abd2 67{{No DNS services for this domain.}}
6ae327f8 68
12adf55a 69extern val domain : your_domain -> Domain => [Root] {DNS : dnsKind, TTL : int};
095de39e 70{{Configure a domain to which you have access rights.}}