Ignore dotfiles in running a whole directory
[hcoop/zz_old/domtool2-proto.git] / lib / domain.dtl
CommitLineData
51c32b45 1{{Configuring shared daemons with respect to a particular Internet domain name}}
2
697d1a52 3extern type no_spaces;
4{{Any string with no space characters}}
5
0279185b 6extern type no_newlines;
7{{Any string with no newline characters}}
8
85af7d3e 9extern type ip;
10{{An IP address}}
11
12extern type host;
13{{A hostname; that is, (more or less) an alphanumeric string}}
14
51c32b45 15extern type domain;
16{{An Internet domain name}}
17
4e8a3f2b 18extern type your_domain;
19{{A domain that you're allowed to configure}}
20
69d98465 21extern type your_domain_host;
22{{Some host (as a fully-qualified domain name) in one of your domains}}
23
668e333e 24extern type node;
25{{The name of a server controlled by domtool}}
26
ae175ff1 27extern val ip_of_node : node -> ip;
28{{Look up the IP address of a node.}}
29
00e4345d 30extern type user;
31extern type group;
32{{UNIX users and groups}}
33
d68ab27c 34extern type your_user;
35extern type your_group;
4e8a3f2b 36{{UNIX users and groups that you're allowed to run as}}
37
d68ab27c 38extern 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.}}
4e8a3f2b 42
51c32b45 43context Domain;
44{{Configuration directives specific to an Internet domain}}
45
85af7d3e 46extern type serial;
47{{Domain zone serial numbers}}
48extern val serialAuto : serial;
ce3174a5 49{{Whenever DNS data changes, choose a sensible serial number automatically.}}
85af7d3e 50extern val serialConst : int -> serial;
51{{Use this particular serial number.}}
52
53extern type soa;
54{{DNS start-of-authority record}}
55extern val soa : domain -> serial -> int -> int -> int -> int -> soa;
56
3408676a 57val defaultSoa = soa "deleuze.hcoop.net" serialAuto 172800 900 1209600 3600;
94a7e258 58
1bb29dea 59extern type dns_node;
60{{A node offering DNS services}}
61extern val dns_node_to_node : dns_node -> node;
62
668e333e 63extern type master;
64{{Information on the master DNS server for a domain}}
65extern val externalMaster : ip -> master;
66{{A server not controlled by domtool will serve as master.}}
1bb29dea 67extern val internalMaster : dns_node -> master;
668e333e 68{{A server controlled by domtool will serve as master.}}
69
85af7d3e 70extern type dnsKind;
71{{How should DNS for this domain be handled?}}
1bb29dea 72extern val useDns : soa -> master -> [dns_node] -> dnsKind;
668e333e 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.}}
85af7d3e 75extern val noDns : dnsKind;
668e333e 76{{No DNS services for this domain.}}
85af7d3e 77
97d03e40 78extern val domain : your_domain -> Domain => [Root] {Aliases : [your_domain], DNS : dnsKind, TTL : int};
51c32b45 79{{Configure a domain to which you have access rights.}}
695b8c37 80
81extern type mail_node;
82{{A node offering SMTP services}}
83extern val mail_node_to_node : mail_node -> node;