equal
deleted
inserted
replaced
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) : |