HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rewriteBase
[hcoop/domtool2.git]
/
lib
/
easy_domain.dtl
diff --git
a/lib/easy_domain.dtl
b/lib/easy_domain.dtl
index
3c3d4e0
..
925802d
100644
(file)
--- a/
lib/easy_domain.dtl
+++ b/
lib/easy_domain.dtl
@@
-1,5
+1,6
@@
{{The most common kinds of domain configuration}}
{{The most common kinds of domain configuration}}
+val default_node : (node) = "mire";
val web_node : (web_node) = "mire";
val webAt =
val web_node : (web_node) = "mire";
val webAt =
@@
-20,10
+21,13
@@
val dom =
\ d : (your_domain) ->
\\ config : Domain ->
domain d with
\ 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;
handleMail;
+ dns (dnsMX 1 "deleuze.hcoop.net");
mailbox <- Mailbox;
catchAllAlias mailbox;
mailbox <- Mailbox;
catchAllAlias mailbox;
@@
-32,3
+36,8
@@
val dom =
config
end;
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);