bin/pvl.hosts-dns
changeset 325 9be2b216e87c
parent 324 9b9c662f36b2
child 331 9dda6a0e9826
--- a/bin/pvl.hosts-dns	Thu Dec 19 19:30:35 2013 +0200
+++ b/bin/pvl.hosts-dns	Thu Dec 19 20:03:22 2013 +0200
@@ -14,12 +14,10 @@
         Resolve alias@domain within given zone.
     """
 
-    if '.' in alias :
-        pass
-    elif host_domain :
+    if host_domain :
         alias = pvl.dns.join(alias, host_domain)
     else :
-        raise ValueError("no domain given for alias: %s / %s" % (alias, ))
+        raise ValueError("no domain given for host %s alias %s" % (host, alias, ))
 
     if alias.endswith('.' + origin) :
         # strip