pvl.hosts-dns: generate forward/reverse cnames as FQDNs
authorTero Marttila <terom@paivola.fi>
Sun, 22 Dec 2013 18:20:45 +0200
changeset 335 77fb4019d4e0
parent 334 19da67d71506
child 336 edaa5d0aa57d
pvl.hosts-dns: generate forward/reverse cnames as FQDNs
bin/pvl.hosts-dns
--- a/bin/pvl.hosts-dns	Sun Dec 22 18:15:59 2013 +0200
+++ b/bin/pvl.hosts-dns	Sun Dec 22 18:20:45 2013 +0200
@@ -48,7 +48,7 @@
         if host.forward is None  :
             pass
         elif host.forward :
-            forward = pvl.dns.join(host, host.forward, host.domain)
+            forward = pvl.dns.zone.fqdn(host, host.forward, host.domain)
 
             log.info("%s: forward: %s", host, forward)
 
@@ -196,7 +196,7 @@
             yield host, ip, pvl.dns.zone.ZoneRecord.PTR(label, fqdn)
 
         elif host.reverse :
-            alias = pvl.dns.join(label, host.reverse, host.domain)
+            alias = pvl.dns.zone.fqdn(label, host.reverse, host.domain)
             
             log.info("%s %s[%s]: CNAME %s", host, prefix, ip, alias)