pvl.hosts: make host.forward/reverse just fqdns...
authorTero Marttila <terom@paivola.fi>
Thu, 26 Dec 2013 14:54:02 +0200
changeset 343 ecdcfd1e7174
parent 342 c0d2e731445f
child 344 70799ad5928d
pvl.hosts: make host.forward/reverse just fqdns...
bin/pvl.hosts-dns
--- a/bin/pvl.hosts-dns	Thu Dec 26 13:20:09 2013 +0200
+++ b/bin/pvl.hosts-dns	Thu Dec 26 14:54:02 2013 +0200
@@ -51,7 +51,7 @@
         if host.forward is None  :
             pass
         elif host.forward :
-            forward = pvl.dns.zone.fqdn(host, host.forward, host.domain)
+            forward = pvl.dns.zone.fqdn(host.forward)
 
             log.info("%s: forward: %s", host, forward)
 
@@ -206,7 +206,7 @@
             yield host, ip, pvl.dns.zone.ZoneRecord.PTR(label, fqdn)
 
         elif host.reverse :
-            alias = pvl.dns.zone.fqdn(label, host.reverse, host.domain)
+            alias = pvl.dns.zone.fqdn(host.reverse)
             
             log.info("%s %s[%s]: CNAME %s", host, prefix, ip, alias)