diff --git a/lib/Zonemaster/CLI.pm b/lib/Zonemaster/CLI.pm index 10c9dc5..83ccb0a 100755 --- a/lib/Zonemaster/CLI.pm +++ b/lib/Zonemaster/CLI.pm @@ -619,6 +619,14 @@ sub run { ( my $errors, $domain ) = normalize_name( decode( 'utf8', $domain ) ); + if ( $self->ns and @{ $self->ns } > 0 ) { + $self->check_fake_delegation( $domain ); + } + + if ( $self->ds and @{ $self->ds } ) { + $self->check_fake_ds( $domain ); + } + if ( scalar @$errors > 0 ) { my $error_message; foreach my $err ( @$errors ) { @@ -640,14 +648,6 @@ sub run { Zonemaster::Engine::Recursor->add_fake_addresses( '.', $hints_data ); } - if ( $self->ns and @{ $self->ns } > 0 ) { - $self->check_fake_delegation( $domain ); - } - - if ( $self->ds and @{ $self->ds } ) { - $self->check_fake_ds( $domain ); - } - if ( $self->profile or $self->test ) { # Separate initialization from main output in human readable output mode print "\n" if $fh_diag eq *STDOUT;