HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fwtool: generate rules in primary input/output chain
[hcoop/domtool2.git]
/
lib
/
domain.dtl
diff --git
a/lib/domain.dtl
b/lib/domain.dtl
index
afd922d
..
1077991
100644
(file)
--- a/
lib/domain.dtl
+++ b/
lib/domain.dtl
@@
-8,6
+8,12
@@
extern type no_newlines;
extern type ip;
{{An IP address}}
extern type ip;
{{An IP address}}
+extern type ipv6;
+{{An IPv6 address}}
+
+extern type your_ip;
+extern val your_ip_to_ip : your_ip -> ip;
+{{An IP address that you're authorized to use; e.g., for an SSL web host}}
extern type host;
{{A hostname; that is, (more or less) an alphanumeric string}}
extern type host;
{{A hostname; that is, (more or less) an alphanumeric string}}
@@
-36,9
+42,15
@@
extern type your_group;
{{UNIX users and groups that you're allowed to run as}}
extern type your_path;
{{UNIX users and groups that you're allowed to run as}}
extern type your_path;
-{{A filesystem path that you're allowed to
use
.
+{{A filesystem path that you're allowed to
write to
.
The set of permitted values is generated from a set of roots by closing it
under the subdirectory relation.}}
The set of permitted values is generated from a set of roots by closing it
under the subdirectory relation.}}
+extern val end_in_slash : your_path -> your_path;
+{{Add a slash at the end of a path, if there isn't one already.}}
+
+extern type readable_path;
+{{Like [your_path], but also includes some paths that everyone is allowed to
+ read.}}
context Domain;
{{Configuration directives specific to an Internet domain}}
context Domain;
{{Configuration directives specific to an Internet domain}}
@@
-46,7
+58,7
@@
context Domain;
extern type serial;
{{Domain zone serial numbers}}
extern val serialAuto : serial;
extern type serial;
{{Domain zone serial numbers}}
extern val serialAuto : serial;
-{{Whenever DNS data changes, choose a sensible serial number automatically.}
+{{Whenever DNS data changes, choose a sensible serial number automatically.}
}
extern val serialConst : int -> serial;
{{Use this particular serial number.}}
extern val serialConst : int -> serial;
{{Use this particular serial number.}}
@@
-54,7
+66,7
@@
extern type soa;
{{DNS start-of-authority record}}
extern val soa : domain -> serial -> int -> int -> int -> int -> soa;
{{DNS start-of-authority record}}
extern val soa : domain -> serial -> int -> int -> int -> int -> soa;
-val defaultSoa = soa "
ns.hcoop.net" serialAuto 172800 9
00 1209600 3600;
+val defaultSoa = soa "
fritz.hcoop.net" serialAuto 86400 18
00 1209600 3600;
extern type dns_node;
{{A node offering DNS services}}
extern type dns_node;
{{A node offering DNS services}}
@@
-75,9
+87,12
@@
extern val useDns : soa -> master -> [dns_node] -> dnsKind;
extern val noDns : dnsKind;
{{No DNS services for this domain.}}
extern val noDns : dnsKind;
{{No DNS services for this domain.}}
-extern val domain : your_domain -> Domain => [Root] {DNS : dnsKind, TTL : int};
+extern val domain : your_domain -> Domain => [Root] {
Aliases : [your_domain],
DNS : dnsKind, TTL : int};
{{Configure a domain to which you have access rights.}}
extern type mail_node;
{{A node offering SMTP services}}
{{Configure a domain to which you have access rights.}}
extern type mail_node;
{{A node offering SMTP services}}
-extern val mail_node_to_node : mail_node -> node;
\ No newline at end of file
+extern val mail_node_to_node : mail_node -> node;
+
+extern val domainHost : host -> [Domain] {} => { Hostname : domain };
+{{Appends the current domain onto a host.}}