Skip to content

Commit

Permalink
Improved XFR warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed May 2, 2024
1 parent c5c83e4 commit 1d48e44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/idns/commands/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down

0 comments on commit 1d48e44

Please sign in to comment.