Fixed sending SOA for records in hosts files.

This commit is contained in:
Revertron committed 2021-04-02 18:40:25 +02:00
1 parent db6b96f8dc
commit 5495686807
1 file changed
-2
-2
View File
@@ -68,13 +68,11 @@ impl DnsFilter for HostsFilter {
}
}
if !packet.answers.is_empty() {
packet.header.authoritative_answer = true;
packet.questions.push(DnsQuestion::new(String::from(qname), qtype));
packet.authorities.push(DnsRecord::NS { domain: String::from("hosts"), host: String::from(NAME_SERVER), ttl: TransientTtl(600) });
return Some(packet);
}
}
None
}