AuthZone: code refactoring done.

This commit is contained in:
Shreyas Zare
2021-07-31 16:59:11 +05:30
parent 3367dc1e39
commit 467bed5ade

View File

@@ -409,12 +409,11 @@ namespace DnsServerCore.Dns.Zones
if (this is SecondaryZone)
{
//copy existing SOA record's glue addresses and comments to new SOA record
//copy existing SOA record's info to new SOA record
DnsResourceRecord existingSoaRecord = _entries[DnsResourceRecordType.SOA][0];
DnsResourceRecord newSoaRecord = newEntry.Value[0];
newSoaRecord.SetPrimaryNameServers(existingSoaRecord.GetPrimaryNameServers());
newSoaRecord.SetComments(existingSoaRecord.GetComments());
newSoaRecord.CopyRecordInfoFrom(existingSoaRecord);
}
}