From 1d48e44bb400b12371a01ee1d63fc75a30b1a96c Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Thu, 2 May 2024 11:15:41 +0200 Subject: [PATCH] Improved XFR warning. --- src/idns/commands/query.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/idns/commands/query.rs b/src/idns/commands/query.rs index c0eac12..bdd21e4 100644 --- a/src/idns/commands/query.rs +++ b/src/idns/commands/query.rs @@ -93,7 +93,10 @@ impl Query { if !self.force { if self.qtype == Rtype::AXFR || self.qtype == Rtype::IXFR { return Err( - "Please use the 'xfr' command for zone transfer.\n\ + "AXFR and IXFR query types invoke zone transfer which \ + may result in a sequence of responses but only the + first is shown by the 'query' command.\n\ + Please use the 'xfr' command for zone transfer.\n\ (Use --force to query anyway.)".into() ); }