1 {{Configuring shared daemons with respect to a particular Internet domain name}}
4 {{Any string with no space characters}}
6 extern type no_newlines;
7 {{Any string with no newline characters}}
13 {{A hostname; that is, (more or less) an alphanumeric string}}
16 {{An Internet domain name}}
18 extern type your_domain;
19 {{A domain that you're allowed to configure}}
21 extern type your_domain_host;
22 {{Some host (as a fully-qualified domain name) in one of your domains}}
25 {{The name of a server controlled by domtool}}
29 {{UNIX users and groups}}
31 extern type your_user;
32 extern type your_group;
33 {{UNIX users and groups that you're allowed to run as}}
35 extern type your_path;
36 {{A filesystem path that you're allowed to use.
37 The set of permitted values is generated from a set of roots by closing it
38 under the subdirectory relation.}}
41 {{Configuration directives specific to an Internet domain}}
44 {{Domain zone serial numbers}}
45 extern val serialAuto : serial;
46 {{Whenever DNS data changes, choose a sensible serial number automatically.}
47 extern val serialConst : int -> serial;
48 {{Use this particular serial number.}}
51 {{DNS start-of-authority record}}
52 extern val soa : domain -> serial -> int -> int -> int -> int -> soa;
54 val defaultSoa = soa "ns.hcoop.net" serialAuto 172800 900 1209600 3600;
57 {{Information on the master DNS server for a domain}}
58 extern val externalMaster : ip -> master;
59 {{A server not controlled by domtool will serve as master.}}
60 extern val internalMaster : node -> master;
61 {{A server controlled by domtool will serve as master.}}
64 {{How should DNS for this domain be handled?}}
65 extern val useDns : soa -> master -> [node] -> dnsKind;
66 {{We do want DNS services for this domain. Specify the SOA record, information
67 on the server in charge of zone data, and a list of slave servers.}}
68 extern val noDns : dnsKind;
69 {{No DNS services for this domain.}}
71 extern val domain : your_domain -> Domain => [Root] {DNS : dnsKind, TTL : int};
72 {{Configure a domain to which you have access rights.}}