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