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}}
15 extern val your_ip_to_ip : your_ip -> ip;
16 {{An IP address that you're authorized to use; e.g., for an SSL web host}}
19 {{A hostname; that is, (more or less) an alphanumeric string}}
22 {{An Internet domain name}}
24 extern type your_domain;
25 {{A domain that you're allowed to configure}}
27 extern type your_domain_host;
28 {{Some host (as a fully-qualified domain name) in one of your domains}}
31 {{The name of a server controlled by domtool}}
33 extern val ip_of_node : node -> ip;
34 {{Look up the IP address of a node.}}
38 {{UNIX users and groups}}
40 extern type your_user;
41 extern type your_group;
42 {{UNIX users and groups that you're allowed to run as}}
44 extern type your_path;
45 {{A filesystem path that you're allowed to write to.
46 The set of permitted values is generated from a set of roots by closing it
47 under the subdirectory relation.}}
48 extern val end_in_slash : your_path -> your_path;
49 {{Add a slash at the end of a path, if there isn't one already.}}
51 extern type readable_path;
52 {{Like [your_path], but also includes some paths that everyone is allowed to
56 {{Configuration directives specific to an Internet domain}}
59 {{Domain zone serial numbers}}
60 extern val serialAuto : serial;
61 {{Whenever DNS data changes, choose a sensible serial number automatically.}}
62 extern val serialConst : int -> serial;
63 {{Use this particular serial number.}}
66 {{DNS start-of-authority record}}
67 extern val soa : domain -> serial -> int -> int -> int -> int -> soa;
69 val defaultSoa = soa "deleuze.hcoop.net" serialAuto 86400 1800 1209600 3600;
72 {{A node offering DNS services}}
73 extern val dns_node_to_node : dns_node -> node;
76 {{Information on the master DNS server for a domain}}
77 extern val externalMaster : ip -> master;
78 {{A server not controlled by domtool will serve as master.}}
79 extern val internalMaster : dns_node -> master;
80 {{A server controlled by domtool will serve as master.}}
81 extern val dns_master_node : dns_node;
82 {{Internal master DNS node}}
83 extern val dns_slave_nodes : [dns_node];
84 {{Internal slave DNS nodes}}
87 {{How should DNS for this domain be handled?}}
88 extern val useDns : soa -> master -> [dns_node] -> dnsKind;
89 {{We do want DNS services for this domain. Specify the SOA record, information
90 on the server in charge of zone data, and a list of slave servers.}}
91 extern val noDns : dnsKind;
92 {{No DNS services for this domain.}}
94 extern val domain : your_domain -> Domain => [Root] {Aliases : [your_domain], DNS : dnsKind, TTL : int};
95 {{Configure a domain to which you have access rights.}}
97 extern type mail_node;
98 {{A node offering SMTP services}}
99 extern val mail_node_to_node : mail_node -> node;
101 extern val domainHost : host -> [Domain] {} => { Hostname : domain };
102 {{Appends the current domain onto a host.}}