Location and Directory
[hcoop/zz_old/domtool2-proto.git] / lib / domain.dtl
CommitLineData
51c32b45 1{{Configuring shared daemons with respect to a particular Internet domain name}}
2
697d1a52 3extern type no_spaces;
4{{Any string with no space characters}}
5
85af7d3e 6extern type ip;
7{{An IP address}}
8
9extern type host;
10{{A hostname; that is, (more or less) an alphanumeric string}}
11
51c32b45 12extern type domain;
13{{An Internet domain name}}
14
4e8a3f2b 15extern type your_domain;
16{{A domain that you're allowed to configure}}
17
668e333e 18extern type node;
19{{The name of a server controlled by domtool}}
20
d68ab27c 21extern type your_user;
22extern type your_group;
4e8a3f2b 23{{UNIX users and groups that you're allowed to run as}}
24
d68ab27c 25extern 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.}}
4e8a3f2b 29
51c32b45 30context Domain;
31{{Configuration directives specific to an Internet domain}}
32
85af7d3e 33extern type serial;
34{{Domain zone serial numbers}}
35extern val serialAuto : serial;
36{{Whenever DNS data changes, choose a sensible serial number automatically.}
37extern val serialConst : int -> serial;
38{{Use this particular serial number.}}
39
40extern type soa;
41{{DNS start-of-authority record}}
42extern val soa : domain -> serial -> int -> int -> int -> int -> soa;
43
668e333e 44extern type master;
45{{Information on the master DNS server for a domain}}
46extern val externalMaster : ip -> master;
47{{A server not controlled by domtool will serve as master.}}
48extern val internalMaster : node -> master;
49{{A server controlled by domtool will serve as master.}}
50
85af7d3e 51extern type dnsKind;
52{{How should DNS for this domain be handled?}}
668e333e 53extern 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.}}
85af7d3e 56extern val noDns : dnsKind;
668e333e 57{{No DNS services for this domain.}}
85af7d3e 58
4e8a3f2b 59extern val domain : your_domain -> Domain => [Root] {DNS : dnsKind, TTL : int};
51c32b45 60{{Configure a domain to which you have access rights.}}