mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-27 02:04:00 +00:00
Zone: fixed CacheResponse issue by allowing authority records to be cached when qtype is NS and answer count is 0.
This commit is contained in:
@@ -1046,7 +1046,7 @@ namespace DnsServerCore
|
||||
return; //nothing to do
|
||||
}
|
||||
|
||||
if ((response.Question.Length > 0) && (response.Question[0].Type != DnsResourceRecordType.NS))
|
||||
if ((response.Question.Length > 0) && ((response.Question[0].Type != DnsResourceRecordType.NS) || (response.Answer.Length == 0)))
|
||||
{
|
||||
foreach (DnsQuestionRecord question in response.Question)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user