X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/be1bea4c0a2a4cfa0b86beccfa423366b94b84b4..e9f528ab975ac28c16b2c370e69206a48f584d78:/lib/domain.dtl diff --git a/lib/domain.dtl b/lib/domain.dtl index 5d2d057..55ac254 100644 --- a/lib/domain.dtl +++ b/lib/domain.dtl @@ -36,17 +36,21 @@ extern type your_group; {{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.}} +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}} 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.}} @@ -54,7 +58,7 @@ extern type soa; {{DNS start-of-authority record}} extern val soa : domain -> serial -> int -> int -> int -> int -> soa; -val defaultSoa = soa "ns.hcoop.net" serialAuto 172800 900 1209600 3600; +val defaultSoa = soa "deleuze.hcoop.net" serialAuto 172800 900 1209600 3600; extern type dns_node; {{A node offering DNS services}} @@ -75,5 +79,12 @@ extern val useDns : soa -> master -> [dns_node] -> dnsKind; 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}} +extern val mail_node_to_node : mail_node -> node; + +extern val domainHost : host -> [Domain] {} => { Hostname : domain }; +{{Appends the current domain onto a host.}}