summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoey Hess2014-06-01 15:07:17 -0400
committerJoey Hess2014-06-01 15:07:17 -0400
commitd224463dcd45b798c532d75ed84d9b1282b83e85 (patch)
tree56dfa165cbd7bb33dfb97031fd2c83cfc1bf1e6e /src
parent27268def8482a3df5b879798c8fb04e3048d0d5a (diff)
comment
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Attr.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Propellor/Attr.hs b/src/Propellor/Attr.hs
index 3ed59437..7d371d40 100644
--- a/src/Propellor/Attr.hs
+++ b/src/Propellor/Attr.hs
@@ -37,6 +37,11 @@ ipv6 :: String -> Property
ipv6 = addDNS . Address . IPv6
-- | Indicates another name for the host in the DNS.
+--
+-- When the host's ipv4/ipv6 addresses are known, the alias is set up
+-- to use their address, rather than using a CNAME. This avoids various
+-- problems with CNAMEs, and also means that when multiple hosts have the
+-- same alias, a DNS round-robin is automatically set up.
alias :: Domain -> Property
alias = addDNS . CNAME . AbsDomain