diff --git a/src/com/verisignlabs/dnssec/cl/SignRRset.java b/src/com/verisignlabs/dnssec/cl/SignRRset.java index 5966f8c..7835715 100644 --- a/src/com/verisignlabs/dnssec/cl/SignRRset.java +++ b/src/com/verisignlabs/dnssec/cl/SignRRset.java @@ -91,6 +91,7 @@ public class SignRRset { // boolean options opts.addOption("h", "help", false, "Print this message."); opts.addOption("a", "verify", false, "verify generated signatures>"); + opts.addOption("m", "multiline", false, "Use a multiline format"); OptionBuilder.hasOptionalArg(); OptionBuilder.withLongOpt("verbose"); @@ -169,6 +170,7 @@ public class SignRRset { } if (cli.hasOption('a')) verifySigs = true; + if (cli.hasOption('m')) org.xbill.DNS.Options.set("multiline"); if ((optstr = cli.getOptionValue('D')) != null) { keyDirectory = new File(optstr); @@ -434,8 +436,6 @@ public class SignRRset { } // write out the signed zone - // force multiline mode for now - org.xbill.DNS.Options.set("multiline"); ZoneUtils.writeZoneFile(signed_records, state.outputfile); if (state.verifySigs) { diff --git a/src/com/verisignlabs/dnssec/cl/SignZone.java b/src/com/verisignlabs/dnssec/cl/SignZone.java index 43c09ac..ed1f62c 100644 --- a/src/com/verisignlabs/dnssec/cl/SignZone.java +++ b/src/com/verisignlabs/dnssec/cl/SignZone.java @@ -113,6 +113,7 @@ public class SignZone opts.addOption("F", "fully-sign-keyset", false, "sign the zone apex keyset with all available keys."); opts.addOption("V", "verbose-signing", false, "Display verbose signing activity."); + opts.addOption("m", "multiline", false, "Use a multiline format"); // Argument options OptionBuilder.hasOptionalArg(); @@ -256,6 +257,7 @@ public class SignZone if (cli.hasOption('3')) useNsec3 = true; if (cli.hasOption('O')) useOptOut = true; if (cli.hasOption('V')) verboseSigning = true; + if (cli.hasOption('m')) org.xbill.DNS.Options.set("multiline"); if (useOptOut && !useNsec3) { @@ -874,8 +876,6 @@ public class SignZone } // write out the signed zone - // force multiline mode for now - org.xbill.DNS.Options.set("multiline"); ZoneUtils.writeZoneFile(signed_records, state.outputfile); if (state.verifySigs)