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