hcoop: remove fritz as dns secondary
[hcoop/domtool2.git] / lib / domain.dtl
CommitLineData
095de39e
AC
1{{Configuring shared daemons with respect to a particular Internet domain name}}
2
f8dfbbcc
AC
3extern type no_spaces;
4{{Any string with no space characters}}
5
d5754b53
AC
6extern type no_newlines;
7{{Any string with no newline characters}}
8
6ae327f8
AC
9extern type ip;
10{{An IP address}}
090692f7
AC
11extern type ipv6;
12{{An IPv6 address}}
6ae327f8 13
128e7b0b 14extern type your_ip;
2e87719c 15extern val your_ip_to_ip : your_ip -> ip;
128e7b0b
AC
16{{An IP address that you're authorized to use; e.g., for an SSL web host}}
17
6ae327f8
AC
18extern type host;
19{{A hostname; that is, (more or less) an alphanumeric string}}
20
095de39e
AC
21extern type domain;
22{{An Internet domain name}}
23
12adf55a
AC
24extern type your_domain;
25{{A domain that you're allowed to configure}}
26
edd38024
AC
27extern type your_domain_host;
28{{Some host (as a fully-qualified domain name) in one of your domains}}
29
e0b0abd2
AC
30extern type node;
31{{The name of a server controlled by domtool}}
32
15e529d6
AC
33extern val ip_of_node : node -> ip;
34{{Look up the IP address of a node.}}
35
2aeb9eec
AC
36extern type user;
37extern type group;
38{{UNIX users and groups}}
39
8a7c40fa
AC
40extern type your_user;
41extern type your_group;
12adf55a
AC
42{{UNIX users and groups that you're allowed to run as}}
43
8a7c40fa 44extern type your_path;
998ed174 45{{A filesystem path that you're allowed to write to.
8a7c40fa
AC
46 The set of permitted values is generated from a set of roots by closing it
47 under the subdirectory relation.}}
b0963032
AC
48extern val end_in_slash : your_path -> your_path;
49{{Add a slash at the end of a path, if there isn't one already.}}
12adf55a 50
998ed174
AC
51extern type readable_path;
52{{Like [your_path], but also includes some paths that everyone is allowed to
53 read.}}
54
095de39e
AC
55context Domain;
56{{Configuration directives specific to an Internet domain}}
57
6ae327f8
AC
58extern type serial;
59{{Domain zone serial numbers}}
60extern val serialAuto : serial;
7e197d72 61{{Whenever DNS data changes, choose a sensible serial number automatically.}}
6ae327f8
AC
62extern val serialConst : int -> serial;
63{{Use this particular serial number.}}
64
65extern type soa;
66{{DNS start-of-authority record}}
67extern val soa : domain -> serial -> int -> int -> int -> int -> soa;
68
9be4ff27 69val defaultSoa = soa "gibran.hcoop.net" serialAuto 86400 1800 1209600 3600;
325285ab 70
be1bea4c
AC
71extern type dns_node;
72{{A node offering DNS services}}
73extern val dns_node_to_node : dns_node -> node;
74
e0b0abd2
AC
75extern type master;
76{{Information on the master DNS server for a domain}}
77extern val externalMaster : ip -> master;
78{{A server not controlled by domtool will serve as master.}}
be1bea4c 79extern val internalMaster : dns_node -> master;
e0b0abd2
AC
80{{A server controlled by domtool will serve as master.}}
81
6ae327f8
AC
82extern type dnsKind;
83{{How should DNS for this domain be handled?}}
be1bea4c 84extern val useDns : soa -> master -> [dns_node] -> dnsKind;
e0b0abd2
AC
85{{We do want DNS services for this domain. Specify the SOA record, information
86 on the server in charge of zone data, and a list of slave servers.}}
6ae327f8 87extern val noDns : dnsKind;
e0b0abd2 88{{No DNS services for this domain.}}
6ae327f8 89
e0b80e65 90extern val domain : your_domain -> Domain => [Root] {Aliases : [your_domain], DNS : dnsKind, TTL : int};
095de39e 91{{Configure a domain to which you have access rights.}}
8c142ff5
AC
92
93extern type mail_node;
94{{A node offering SMTP services}}
e9f528ab
AC
95extern val mail_node_to_node : mail_node -> node;
96
97extern val domainHost : host -> [Domain] {} => { Hostname : domain };
98{{Appends the current domain onto a host.}}