DnsWebService: Updated ResolveQueryAsync() to avoid resolving domain name for name server for TLS and HTTPS transport protocols.

This commit is contained in:
Shreyas Zare
2022-10-30 18:54:33 +05:30
parent 2b03e69986
commit bbc9371d9b

View File

@@ -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
{