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 | ||
d5754b53 AC |
6 | extern type no_newlines; |
7 | {{Any string with no newline characters}} | |
8 | ||
6ae327f8 AC |
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 | ||
095de39e AC |
15 | extern type domain; |
16 | {{An Internet domain name}} | |
17 | ||
12adf55a AC |
18 | extern type your_domain; |
19 | {{A domain that you're allowed to configure}} | |
20 | ||
edd38024 AC |
21 | extern type your_domain_host; |
22 | {{Some host (as a fully-qualified domain name) in one of your domains}} | |
23 | ||
e0b0abd2 AC |
24 | extern type node; |
25 | {{The name of a server controlled by domtool}} | |
26 | ||
15e529d6 AC |
27 | extern val ip_of_node : node -> ip; |
28 | {{Look up the IP address of a node.}} | |
29 | ||
2aeb9eec AC |
30 | extern type user; |
31 | extern type group; | |
32 | {{UNIX users and groups}} | |
33 | ||
8a7c40fa AC |
34 | extern type your_user; |
35 | extern type your_group; | |
12adf55a AC |
36 | {{UNIX users and groups that you're allowed to run as}} |
37 | ||
8a7c40fa AC |
38 | extern type your_path; |
39 | {{A filesystem path that you're allowed to use. | |
40 | The set of permitted values is generated from a set of roots by closing it | |
41 | under the subdirectory relation.}} | |
12adf55a | 42 | |
095de39e AC |
43 | context Domain; |
44 | {{Configuration directives specific to an Internet domain}} | |
45 | ||
6ae327f8 AC |
46 | extern type serial; |
47 | {{Domain zone serial numbers}} | |
48 | extern val serialAuto : serial; | |
7e197d72 | 49 | {{Whenever DNS data changes, choose a sensible serial number automatically.}} |
6ae327f8 AC |
50 | extern val serialConst : int -> serial; |
51 | {{Use this particular serial number.}} | |
52 | ||
53 | extern type soa; | |
54 | {{DNS start-of-authority record}} | |
55 | extern val soa : domain -> serial -> int -> int -> int -> int -> soa; | |
56 | ||
325285ab AC |
57 | val defaultSoa = soa "ns.hcoop.net" serialAuto 172800 900 1209600 3600; |
58 | ||
be1bea4c AC |
59 | extern type dns_node; |
60 | {{A node offering DNS services}} | |
61 | extern val dns_node_to_node : dns_node -> node; | |
62 | ||
e0b0abd2 AC |
63 | extern type master; |
64 | {{Information on the master DNS server for a domain}} | |
65 | extern val externalMaster : ip -> master; | |
66 | {{A server not controlled by domtool will serve as master.}} | |
be1bea4c | 67 | extern val internalMaster : dns_node -> master; |
e0b0abd2 AC |
68 | {{A server controlled by domtool will serve as master.}} |
69 | ||
6ae327f8 AC |
70 | extern type dnsKind; |
71 | {{How should DNS for this domain be handled?}} | |
be1bea4c | 72 | extern val useDns : soa -> master -> [dns_node] -> dnsKind; |
e0b0abd2 AC |
73 | {{We do want DNS services for this domain. Specify the SOA record, information |
74 | on the server in charge of zone data, and a list of slave servers.}} | |
6ae327f8 | 75 | extern val noDns : dnsKind; |
e0b0abd2 | 76 | {{No DNS services for this domain.}} |
6ae327f8 | 77 | |
e0b80e65 | 78 | extern val domain : your_domain -> Domain => [Root] {Aliases : [your_domain], DNS : dnsKind, TTL : int}; |
095de39e | 79 | {{Configure a domain to which you have access rights.}} |
8c142ff5 AC |
80 | |
81 | extern type mail_node; | |
82 | {{A node offering SMTP services}} | |
83 | extern val mail_node_to_node : mail_node -> node; |