From 96eda19601b87b74ed7215e4e83cbda9a0f02663 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 13 Mar 2021 13:22:39 +0530 Subject: [PATCH] DnsWebService: removed application zone api support. --- DnsServerCore/DnsWebService.cs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/DnsServerCore/DnsWebService.cs b/DnsServerCore/DnsWebService.cs index da67b2b7..63c55600 100644 --- a/DnsServerCore/DnsWebService.cs +++ b/DnsServerCore/DnsWebService.cs @@ -3388,28 +3388,6 @@ namespace DnsServerCore } break; - case AuthZoneType.Application: - { - string strAppName = request.QueryString["appName"]; - if (string.IsNullOrEmpty(strAppName)) - throw new DnsWebServiceException("Parameter 'appName' missing."); - - string strClassPath = request.QueryString["classPath"]; - if (string.IsNullOrEmpty(strClassPath)) - throw new DnsWebServiceException("Parameter 'classPath' missing."); - - string strRecordData = request.QueryString["recordData"]; - if (string.IsNullOrEmpty(strRecordData)) - strRecordData = ""; - - if (_dnsServer.AuthZoneManager.CreateApplicationZone(domain, _dnsServer.ServerDomain, strAppName, strClassPath, strRecordData) == null) - throw new DnsWebServiceException("Zone already exists: " + domain); - - _log.Write(GetRequestRemoteEndPoint(request), "[" + GetSession(request).Username + "] Application zone was created: " + domain); - _dnsServer.AuthZoneManager.SaveZoneFile(domain); - } - break; - default: throw new NotSupportedException("Zone type not supported."); }