From 282ceda5465dec6e620a2edd3d5bfd9087e7ea87 Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Tue, 5 Nov 2024 09:20:56 +0100 Subject: [PATCH] Revert default iterations change for now and add a comment about it. --- src/commands/signzone.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/signzone.rs b/src/commands/signzone.rs index 4f883e4..01c47bf 100644 --- a/src/commands/signzone.rs +++ b/src/commands/signzone.rs @@ -40,11 +40,14 @@ pub struct SignZone { algorithm: Nsec3HashAlg, /// Number of hash iterations + // TODO: make the default for dnst-signzone be 0 (to match best practice) + // while leaving the default for ldns-signzone be 1 (to match ldns), or + // maybe even change the default for both to 0. #[arg( help_heading = Some("NSEC3 (when using '-n')"), short = 't', value_name = "number", - default_value_t = 0, // TODO: make the default for ldns-signzone 1 for backward compatibility? + default_value_t = 1, requires = "nsec3" )] iterations: u16, @@ -168,7 +171,7 @@ impl SignZone { let (apex, ttl) = Self::find_apex(&records).unwrap(); - let opt_out = if self.nsec3_opt_out { + let opt_out = if self.hash_only { Nsec3OptOut::OptOut } else if self.nsec3_opt_out_flags_only { Nsec3OptOut::OptOutFlagsOnly