fixed issue that got added earlier.

This commit is contained in:
Shreyas Zare
2019-02-02 14:01:14 +05:30
parent 94332502b1
commit 5cbe4effd0

View File

@@ -2017,9 +2017,6 @@ namespace DnsServerCore
if (string.IsNullOrEmpty(domain))
throw new DnsWebServiceException("Parameter 'domain' missing.");
if (!_dnsServer.AuthoritativeZoneRoot.DeleteZone(domain, false))
throw new DnsWebServiceException("Zone '" + domain + "' was not found.");
_dnsServer.AuthoritativeZoneRoot.EnableZone(domain);
_log.Write(GetRequestRemoteEndPoint(request), true, "[" + GetSession(request).Username + "] Authoritative zone was enabled: " + domain);
@@ -2033,9 +2030,6 @@ namespace DnsServerCore
if (string.IsNullOrEmpty(domain))
throw new DnsWebServiceException("Parameter 'domain' missing.");
if (!_dnsServer.AuthoritativeZoneRoot.DeleteZone(domain, false))
throw new DnsWebServiceException("Zone '" + domain + "' was not found.");
_dnsServer.AuthoritativeZoneRoot.DisableZone(domain);
_log.Write(GetRequestRemoteEndPoint(request), true, "[" + GetSession(request).Username + "] Authoritative zone was disabled: " + domain);