bin/pvl.hosts-dns
changeset 421 585eadaed270
parent 385 01d31fda75ab
child 454 a1c79f9c47c4
--- a/bin/pvl.hosts-dns	Sun Apr 27 01:44:30 2014 +0300
+++ b/bin/pvl.hosts-dns	Sat Jul 26 13:42:37 2014 +0300
@@ -73,7 +73,9 @@
         if host.alias6 :
             yield pvl.dns.zone.ZoneRecord.AAAA(label.ALIAS6_FMT.format(host=host), host.ip6)
 
-        if host.location :
+        if host.location and host.location_domain:
+            yield process_hosts_alias(options, origin, host.location_domain, host.location, label)
+        elif host.location:
             yield process_hosts_alias(options, origin, host.domain, host.location, label)
 
         for alias in host.alias :