diff --git a/DnsServerCore/DnsWebService.cs b/DnsServerCore/DnsWebService.cs index 51845c1a..05d676bc 100644 --- a/DnsServerCore/DnsWebService.cs +++ b/DnsServerCore/DnsWebService.cs @@ -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);