changeset 278 | 2db1a5323f92 |
parent 273 | c8deaa9a2746 |
child 283 | 951e4b70bad4 |
--- a/bin/pvl.hosts-dns Mon Dec 16 20:21:09 2013 +0200 +++ b/bin/pvl.hosts-dns Mon Dec 16 20:21:30 2013 +0200 @@ -66,7 +66,13 @@ else : by_ip[ip] = fqdn - for ip in prefix.iterhosts() : + if options.unknown_host : + # enumerate all of them + iter_ips = prefix.iterhosts() + else : + iter_ips = sorted(by_ip) + + for ip in iter_ips : if ip in by_ip : fqdn = by_ip[ip] elif options.unknown_host :