fix MsDns2012 NS record bug

This commit is contained in:
dev_amdtel 2014-09-12 13:40:19 +04:00
parent 9fc94fbcb9
commit 323e6d7ad6
2 changed files with 25 additions and 1 deletions

View file

@ -98,12 +98,18 @@ namespace WebsitePanel.Providers.DNS
public virtual void AddPrimaryZone( string zoneName, string[] secondaryServers )
{
ps.Add_DnsServerPrimaryZone( zoneName, secondaryServers );
// remove ns records
ps.Remove_DnsServerResourceRecords(zoneName, "NS");
}
public virtual void AddSecondaryZone( string zoneName, string[] masterServers )
{
ps.Add_DnsServerSecondaryZone( zoneName, masterServers );
}
// remove ns records
ps.Remove_DnsServerResourceRecords(zoneName, "NS");
}
public virtual void DeleteZone( string zoneName )
{