BlockedZoneManager: updated UpdateServerDomain() to support blocking answer ttl feature.

This commit is contained in:
Shreyas Zare
2024-10-19 16:42:00 +05:30
parent cd64c04a1e
commit 58fa6c9580

View File

@@ -121,10 +121,10 @@ namespace DnsServerCore.Dns.ZoneManagers
internal void UpdateServerDomain()
{
_soaRecord = new DnsSOARecordData(_dnsServer.ServerDomain, _dnsServer.ResponsiblePerson.Address, 1, 900, 300, 604800, 60);
_soaRecord = new DnsSOARecordData(_dnsServer.ServerDomain, _dnsServer.ResponsiblePerson.Address, 1, 14400, 3600, 604800, _dnsServer.BlockingAnswerTtl);
_nsRecord = new DnsNSRecordData(_dnsServer.ServerDomain);
_zoneManager.UpdateServerDomain();
_zoneManager.UpdateServerDomain(true);
}
private void SaveZoneFileInternal()