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