bin/pvl.hosts-dns
changeset 421 585eadaed270
parent 385 01d31fda75ab
child 454 a1c79f9c47c4
equal deleted inserted replaced
420:ee31a0b573f2 421:585eadaed270
    71             yield pvl.dns.zone.ZoneRecord.AAAA(label, host.ip6)
    71             yield pvl.dns.zone.ZoneRecord.AAAA(label, host.ip6)
    72 
    72 
    73         if host.alias6 :
    73         if host.alias6 :
    74             yield pvl.dns.zone.ZoneRecord.AAAA(label.ALIAS6_FMT.format(host=host), host.ip6)
    74             yield pvl.dns.zone.ZoneRecord.AAAA(label.ALIAS6_FMT.format(host=host), host.ip6)
    75 
    75 
    76         if host.location :
    76         if host.location and host.location_domain:
       
    77             yield process_hosts_alias(options, origin, host.location_domain, host.location, label)
       
    78         elif host.location:
    77             yield process_hosts_alias(options, origin, host.domain, host.location, label)
    79             yield process_hosts_alias(options, origin, host.domain, host.location, label)
    78 
    80 
    79         for alias in host.alias :
    81         for alias in host.alias :
    80             yield process_hosts_alias(options, origin, host.domain, alias, label)
    82             yield process_hosts_alias(options, origin, host.domain, alias, label)
    81 
    83