From 58fa6c9580034ebc1cb5c4e339628c75748073a0 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 19 Oct 2024 16:42:00 +0530 Subject: [PATCH] BlockedZoneManager: updated UpdateServerDomain() to support blocking answer ttl feature. --- DnsServerCore/Dns/ZoneManagers/BlockedZoneManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DnsServerCore/Dns/ZoneManagers/BlockedZoneManager.cs b/DnsServerCore/Dns/ZoneManagers/BlockedZoneManager.cs index 86880c47..b0547b1c 100644 --- a/DnsServerCore/Dns/ZoneManagers/BlockedZoneManager.cs +++ b/DnsServerCore/Dns/ZoneManagers/BlockedZoneManager.cs @@ -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()