Merge
This commit is contained in:
parent
1d3c5a8a29
commit
837892e689
6 changed files with 18 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.17929
|
// Runtime Version:4.0.30319.18010
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.17929
|
// Runtime Version:4.0.30319.18010
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
' <auto-generated>
|
' <auto-generated>
|
||||||
' This code was generated by a tool.
|
' This code was generated by a tool.
|
||||||
' Runtime Version:4.0.30319.17929
|
' Runtime Version:4.0.30319.18010
|
||||||
'
|
'
|
||||||
' Changes to this file may cause incorrect behavior and will be lost if
|
' Changes to this file may cause incorrect behavior and will be lost if
|
||||||
' the code is regenerated.
|
' the code is regenerated.
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
@ -1213,6 +1214,17 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
DNSServer dns = new DNSServer();
|
DNSServer dns = new DNSServer();
|
||||||
ServiceProviderProxy.Init(dns, zone.ServiceId);
|
ServiceProviderProxy.Init(dns, zone.ServiceId);
|
||||||
|
|
||||||
|
DnsRecord[] domainRecords = dns.GetZoneRecords(zone.Name);
|
||||||
|
var duplicateRecords = (from zoneRecord in domainRecords
|
||||||
|
from resRecord in resourceRecords
|
||||||
|
where zoneRecord.RecordName == resRecord.RecordName
|
||||||
|
where zoneRecord.RecordType == resRecord.RecordType
|
||||||
|
select zoneRecord).ToArray();
|
||||||
|
if (duplicateRecords != null && duplicateRecords.Count() > 0)
|
||||||
|
{
|
||||||
|
dns.DeleteZoneRecords(zone.Name, duplicateRecords);
|
||||||
|
}
|
||||||
|
|
||||||
// add new resource records
|
// add new resource records
|
||||||
dns.AddZoneRecords(zone.Name, resourceRecords.ToArray());
|
dns.AddZoneRecords(zone.Name, resourceRecords.ToArray());
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,15 +5,11 @@
|
||||||
</configSections>
|
</configSections>
|
||||||
<!-- Connection strings -->
|
<!-- Connection strings -->
|
||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="EnterpriseServer" connectionString="server=2012PROV01;database=WebsitePanel;uid=WebsitePanel;pwd=5qc7ftf6q42byc08z857;" providerName="System.Data.SqlClient" />
|
<add name="EnterpriseServer" connectionString="Server=(local)\SQLExpress;Database=WebsitePanel;uid=sa;pwd=Password12" providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<!-- A1D4KDHUE83NKHddF -->
|
<!-- Encryption util settings -->
|
||||||
<!--
|
<add key="WebsitePanel.CryptoKey" value="1234567890" />
|
||||||
<add key="WebsitePanel.CryptoKey" value="3x7eqt7zabc5n5afs6dg" />
|
|
||||||
<add key="WebsitePanel.CryptoKey" value="fr2ym4wn2gmbrj7dz336" />
|
|
||||||
-->
|
|
||||||
<add key="WebsitePanel.CryptoKey" value="fbd61z4gwsc2m01x7xn2" />
|
|
||||||
<!-- A1D4KDHUE83NKHddF -->
|
<!-- A1D4KDHUE83NKHddF -->
|
||||||
<add key="WebsitePanel.EncryptionEnabled" value="true" />
|
<add key="WebsitePanel.EncryptionEnabled" value="true" />
|
||||||
<!-- Web Applications -->
|
<!-- Web Applications -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue