From 0c0d72c80fd59d7d171016600d5b9d7efefe9264 Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Fri, 26 Apr 2024 14:22:41 +0200 Subject: [PATCH] Also show record type in diff. --- src/idns/commands/query.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/idns/commands/query.rs b/src/idns/commands/query.rs index f50d463..87caefc 100644 --- a/src/idns/commands/query.rs +++ b/src/idns/commands/query.rs @@ -11,6 +11,7 @@ use domain::base::iana::{Class, Rtype}; use domain::base::message::Message; use domain::base::message_builder::MessageBuilder; use domain::base::name::{Name, ParsedName, ToName, UncertainName}; +use domain::base::rdata::RecordData; use domain::net::client::{dgram, stream}; use domain::net::client::request::RequestMessage; use domain::rdata::{AllRecordData, Ns, Soa}; @@ -385,7 +386,10 @@ impl Query { /// Prints the content of a diff. fn output_diff(&self, diff: Vec) { for item in diff { - println!("{}{} {} {}", item.0, item.1.0, item.1.1, item.1.2); + println!( + "{}{} {} {} {}", + item.0, item.1.0, item.1.1, item.1.2.rtype(), item.1.2 + ); } } }