diff --git a/DnsServerCore/Dns/Zones/PrimaryZone.cs b/DnsServerCore/Dns/Zones/PrimaryZone.cs index 5922d59c..1134f734 100644 --- a/DnsServerCore/Dns/Zones/PrimaryZone.cs +++ b/DnsServerCore/Dns/Zones/PrimaryZone.cs @@ -17,6 +17,7 @@ along with this program. If not, see . */ +using DnsServerCore.Dns.ResourceRecords; using System; using System.Collections.Generic; using System.Threading; @@ -222,8 +223,10 @@ namespace DnsServerCore.Dns.Zones if ((records.Count != 1) || !records[0].Name.Equals(_name, StringComparison.OrdinalIgnoreCase)) throw new InvalidOperationException("Invalid SOA record."); - //remove any resource record info + //remove any resource record info except comments + string comments = records[0].GetComments(); records[0].Tag = null; + records[0].SetComments(comments); break; }