mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-04-25 14:03:07 +00:00
code refactoring changes.
This commit is contained in:
@@ -197,7 +197,7 @@ namespace DnsServerCore.Dns.Zones
|
||||
default:
|
||||
if (TryDeleteRecord(type, rdata, out DnsResourceRecord deletedRecord))
|
||||
{
|
||||
_primaryZone.CommitAndIncrementSerial(new DnsResourceRecord[] { deletedRecord });
|
||||
_primaryZone.CommitAndIncrementSerial([deletedRecord]);
|
||||
|
||||
if (_primaryZone.DnssecStatus != AuthZoneDnssecStatus.Unsigned)
|
||||
_primaryZone.UpdateDnssecRecordsFor(this, type);
|
||||
@@ -216,7 +216,7 @@ namespace DnsServerCore.Dns.Zones
|
||||
switch (oldRecord.Type)
|
||||
{
|
||||
case DnsResourceRecordType.SOA:
|
||||
throw new InvalidOperationException("Cannot update record: use SetRecords() for " + oldRecord.Type.ToString() + " record");
|
||||
throw new InvalidOperationException("Cannot update record: use SetRecords() for " + oldRecord.Type.ToString() + " record.");
|
||||
|
||||
case DnsResourceRecordType.DNSKEY:
|
||||
case DnsResourceRecordType.RRSIG:
|
||||
|
||||
Reference in New Issue
Block a user