--- a/bin/pvl.hosts-reverse Thu Feb 26 15:26:26 2015 +0200
+++ b/bin/pvl.hosts-reverse Thu Feb 26 15:29:03 2015 +0200
@@ -28,14 +28,22 @@
log.fatal("required --reverse-zone")
return 1
+ if options.unknown_host and not options.hosts_domain:
+ log.fatal("--unknown-host requires --hosts-domain=")
+ return 1
+
hosts = pvl.hosts.apply(options, args)
# process
prefix = pvl.dns.parse_prefix(options.reverse_zone)
try:
- for rr in pvl.hosts.zone.apply_hosts_reverse(options, hosts, prefix):
+ for rr in pvl.hosts.zone.apply_hosts_reverse(hosts, prefix,
+ unknown_host = options.unknown_host,
+ unknown_domain = options.hosts_domain,
+ ):
print unicode(rr)
+
except pvl.hosts.HostError as error:
log.error("%s", error)
return 3