X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/60695e9923af9e74160575b5de0d5549808294b4..d307ad55e460dd1ceb4fa0601e45546e2f2a87d3:/lib/easy_domain.dtl diff --git a/lib/easy_domain.dtl b/lib/easy_domain.dtl index 3c3d4e0..925802d 100644 --- a/lib/easy_domain.dtl +++ b/lib/easy_domain.dtl @@ -1,5 +1,6 @@ {{The most common kinds of domain configuration}} +val default_node : (node) = "mire"; val web_node : (web_node) = "mire"; val webAt = @@ -20,10 +21,13 @@ val dom = \ d : (your_domain) -> \\ config : Domain -> domain d with - dns (dnsNS "ns.hcoop.net"); - dns (dnsNS "ns2.hcoop.net"); + dns (dnsNS "ns1.hcoop.net"); + dns (dnsNS "ns3.hcoop.net"); + + dns (dnsDefaultA (ip_of_node default_node)); handleMail; + dns (dnsMX 1 "deleuze.hcoop.net"); mailbox <- Mailbox; catchAllAlias mailbox; @@ -32,3 +36,8 @@ val dom = config end; + +val nameserver = \host -> dns (dnsNS host); +val dnsIP = \from -> \to -> dns (dnsA from to); +val dnsMail = \num -> \host -> dns (dnsMX num host); +val dnsAlias = \from -> \to -> dns (dnsCNAME from to);