51c32b45 |
1 | {{Configuring shared daemons with respect to a particular Internet domain name}} |
2 | |
697d1a52 |
3 | extern type no_spaces; |
4 | {{Any string with no space characters}} |
5 | |
85af7d3e |
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 | |
51c32b45 |
12 | extern type domain; |
13 | {{An Internet domain name}} |
14 | |
4e8a3f2b |
15 | extern type your_domain; |
16 | {{A domain that you're allowed to configure}} |
17 | |
668e333e |
18 | extern type node; |
19 | {{The name of a server controlled by domtool}} |
20 | |
d68ab27c |
21 | extern type your_user; |
22 | extern type your_group; |
4e8a3f2b |
23 | {{UNIX users and groups that you're allowed to run as}} |
24 | |
d68ab27c |
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.}} |
4e8a3f2b |
29 | |
51c32b45 |
30 | context Domain; |
31 | {{Configuration directives specific to an Internet domain}} |
32 | |
85af7d3e |
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 | |
668e333e |
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 | |
85af7d3e |
51 | extern type dnsKind; |
52 | {{How should DNS for this domain be handled?}} |
668e333e |
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.}} |
85af7d3e |
56 | extern val noDns : dnsKind; |
668e333e |
57 | {{No DNS services for this domain.}} |
85af7d3e |
58 | |
4e8a3f2b |
59 | extern val domain : your_domain -> Domain => [Root] {DNS : dnsKind, TTL : int}; |
51c32b45 |
60 | {{Configure a domain to which you have access rights.}} |