your_ip_to_ip
[hcoop/domtool2.git] / lib / easy_domain.dtl
index 82c66bf..c4b3d4f 100644 (file)
@@ -17,6 +17,19 @@ val webAt =
 
 val web = webAt web_node;
 
 
 val web = webAt web_node;
 
+val webAtIp =
+       \ ip : (your_ip) ->
+       \ host : (host) ->
+       \\ config : Vhost -> begin
+         dns (dnsA host (your_ip_to_ip ip));
+
+         vhost host where
+           WebPlaces = [web_place web_node ip]
+         with
+           config
+         end
+       end;
+
 val addDefaultAlias = begin
   mailbox <- Mailbox;
   defaultAlias mailbox
 val addDefaultAlias = begin
   mailbox <- Mailbox;
   defaultAlias mailbox