Fixed
1. Remove the text on the Create a website tab that says “ignore” really can just delete whole line 2. Database records for SSL need to be deleted from database when switching from Static to Dynamic (If you make a cert request, switch and switch again it shows the prior request. It should be defaulted again) 3. Instant alias should ignore global dns rules
This commit is contained in:
parent
d28dc2f1d8
commit
aa11b4b202
5 changed files with 22 additions and 10 deletions
|
@ -47,10 +47,10 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
public static int AddZone(int packageId, int serviceId, string zoneName)
|
||||
{
|
||||
return AddZone(packageId, serviceId, zoneName, true);
|
||||
return AddZone(packageId, serviceId, zoneName, true, false);
|
||||
}
|
||||
|
||||
public static int AddZone(int packageId, int serviceId, string zoneName, bool addPackageItem)
|
||||
public static int AddZone(int packageId, int serviceId, string zoneName, bool addPackageItem, bool ignoreGlobalDNSRecords)
|
||||
{
|
||||
// get DNS provider
|
||||
DNSServer dns = GetDNSServer(serviceId);
|
||||
|
@ -148,13 +148,17 @@ namespace WebsitePanel.EnterpriseServer
|
|||
zoneRecords.Add(ns);
|
||||
}
|
||||
|
||||
// add all other records
|
||||
zoneRecords.AddRange(BuildDnsResourceRecords(records, "", zoneName, ""));
|
||||
if (!ignoreGlobalDNSRecords)
|
||||
{
|
||||
// add all other records
|
||||
zoneRecords.AddRange(BuildDnsResourceRecords(records, "", zoneName, ""));
|
||||
}
|
||||
|
||||
// add zone records
|
||||
dns.AddZoneRecords(zoneName, zoneRecords.ToArray());
|
||||
|
||||
|
||||
|
||||
// add secondary zones
|
||||
foreach (int secondaryId in secondaryServiceIds)
|
||||
{
|
||||
|
@ -443,7 +447,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
if (!dns.ZoneExists(itemName))
|
||||
{
|
||||
// create primary and secondary zones
|
||||
AddZone(packageId, serviceId, itemName, false);
|
||||
AddZone(packageId, serviceId, itemName, false, false);
|
||||
|
||||
// restore records
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(DnsRecord));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue