From 5e819d076c59b54dbc36a0994958a5dbbcbf1340 Mon Sep 17 00:00:00 2001 From: Ava Chow Date: Sun, 5 May 2024 16:07:48 -0400 Subject: [PATCH] Set AA for errors too --- src/dns.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dns.rs b/src/dns.rs index 1ffd9f3..eb6064d 100644 --- a/src/dns.rs +++ b/src/dns.rs @@ -232,6 +232,7 @@ pub fn dns_thread( // Add SOA record for only NOERROR and NXDOMAIN if query.is_some() && (code == Rcode::NOERROR || code == Rcode::NXDOMAIN) { + auth.header_mut().set_aa(true); let mut auth_recs_sign = RecordsToSign::new(); auth.push(seeder.get_soa()).unwrap(); auth_recs_sign.add_soa(seeder.get_soa());