Add default DNS mappings
[hcoop/domtool2.git] / lib / easy_domain.dtl
index 3c3d4e0..0b4027d 100644 (file)
@@ -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,8 +21,10 @@ val dom =
        \ d : (your_domain) ->
        \\ config : Domain ->
                domain d with
-                       dns (dnsNS "ns.hcoop.net");
-                       dns (dnsNS "ns2.hcoop.net");
+                       dns (dnsNS "deleuze.hcoop.net");
+                       dns (dnsNS "mire.hcoop.net");
+
+                       dns (dnsDefaultA (ip_of_node default_node));
 
                        handleMail;
                        mailbox <- Mailbox;
@@ -32,3 +35,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);