diff --git a/src/dns.rs b/src/dns.rs index 1ffd9f3..6944abc 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) { + res_builder.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());