bin/pvl.hosts-dns
changeset 298 fa1ab8cda47e
parent 296 9dad6914cfe7
child 299 df653511caf9
equal deleted inserted replaced
297:63bce6f67916 298:fa1ab8cda47e
   101         elif options.unknown_host :
   101         elif options.unknown_host :
   102             fqdn = pvl.dns.zone.fqdn(options.unknown_host, options.hosts_domain)
   102             fqdn = pvl.dns.zone.fqdn(options.unknown_host, options.hosts_domain)
   103         else :
   103         else :
   104             fqdn = None
   104             fqdn = None
   105         
   105         
       
   106         log.info("%s: %s", ip, fqdn)
       
   107 
   106         if fqdn :
   108         if fqdn :
   107             # reverse against the reverse-dns zone origin
   109             # reverse against the reverse-dns zone origin
   108             yield pvl.dns.zone.ZoneRecord.PTR(pvl.dns.zone.reverse_label(prefix, ip), fqdn)
   110             yield pvl.dns.zone.ZoneRecord.PTR(pvl.dns.zone.reverse_label(prefix, ip), fqdn)
   109 
   111 
   110 def apply_zone (options, zone) :
   112 def apply_zone (options, zone) :