From bbc9371d9b80e12a8dd3b104d4aec8feeb814c8b Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 30 Oct 2022 18:54:33 +0530 Subject: [PATCH] DnsWebService: Updated ResolveQueryAsync() to avoid resolving domain name for name server for TLS and HTTPS transport protocols. --- DnsServerCore/DnsWebService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DnsServerCore/DnsWebService.cs b/DnsServerCore/DnsWebService.cs index 814833cd..7af40515 100644 --- a/DnsServerCore/DnsWebService.cs +++ b/DnsServerCore/DnsWebService.cs @@ -3487,7 +3487,7 @@ namespace DnsServerCore if (proxy is null) await nameServer.ResolveIPAddressAsync(_dnsServer, _dnsServer.PreferIPv6); } - else if (protocol != DnsTransportProtocol.Tls) + else if ((nameServer.DomainEndPoint is null) && ((protocol == DnsTransportProtocol.Udp) || (protocol == DnsTransportProtocol.Tcp))) { try {