mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-05-21 02:26:07 +00:00
BlockedZoneManager: updated UpdateServerDomain() to support blocking answer ttl feature.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user