Skip to content

Commit

Permalink
Set AA for errors too
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed May 5, 2024
1 parent cb3e69d commit 2165966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 2165966

Please sign in to comment.