AuthZoneManager: updated GetReferralResponse() to set last used on value for stub authority records.

This commit is contained in:
Shreyas Zare
2022-04-24 17:23:54 +05:30
parent 1af2c91a78
commit b24be82552

View File

@@ -362,6 +362,12 @@ namespace DnsServerCore.Dns.ZoneManagers
if (delegationZone is StubZone)
{
authority = delegationZone.GetRecords(DnsResourceRecordType.NS); //stub zone has no authority so cant query
//update last used on
DateTime utcNow = DateTime.UtcNow;
foreach (DnsResourceRecord record in authority)
record.GetRecordInfo().LastUsedOn = utcNow;
}
else
{