X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/2e87719caa8c0cc98c573a2071a3c9c7cd503632..660f5874aa860c9cb2bf4c3022aca4d971ae815c:/lib/domain.dtl diff --git a/lib/domain.dtl b/lib/domain.dtl index 2b17089..08606a6 100644 --- a/lib/domain.dtl +++ b/lib/domain.dtl @@ -8,6 +8,8 @@ extern type no_newlines; 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; @@ -43,6 +45,8 @@ extern type your_path; {{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.}} +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 @@ -62,7 +66,7 @@ extern type soa; {{DNS start-of-authority record}} extern val soa : domain -> serial -> int -> int -> int -> int -> soa; -val defaultSoa = soa "deleuze.hcoop.net" serialAuto 172800 900 1209600 3600; +val defaultSoa = soa "deleuze.hcoop.net" serialAuto 86400 1800 1209600 3600; extern type dns_node; {{A node offering DNS services}}