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