bin/pvl.hosts-forward
changeset 687 f99f9e3d02cf
parent 670 b95ad8c8bb4e
child 735 008cfe47b194
--- a/bin/pvl.hosts-forward	Mon Mar 02 13:12:35 2015 +0200
+++ b/bin/pvl.hosts-forward	Mon Mar 02 13:26:34 2015 +0200
@@ -25,6 +25,9 @@
     parser.add_option('--add-origin',           action='store_true',
             help="Include $ORIGIN directive in zone")
 
+    parser.add_option('--check-conflicts',      action='store_true',
+            help="Check for dupliate forward records, e.g. multiple A records for the same name")
+
     # input
     options, args = pvl.args.parse(parser, argv)
  
@@ -52,7 +55,8 @@
     # process
     try:
         for rr in pvl.hosts.zone.apply_hosts_forward(hosts, origin,
-                add_origin  = options.add_origin,
+                add_origin      = options.add_origin,
+                check_conflicts = options.check_conflicts,
         ):
             print unicode(rr)
     except pvl.hosts.HostError as error: