DnsWebService: updated ResolveQuery() to load local zone trust anchors into the dns client.

This commit is contained in:
Shreyas Zare
2022-02-27 18:21:04 +05:30
parent 5e7dbe38cb
commit 6d5656a9b6

View File

@@ -3016,6 +3016,12 @@ namespace DnsServerCore
dnsClient.UdpPayloadSize = udpPayloadSize;
dnsClient.DnssecValidation = dnssecValidation;
if (dnssecValidation)
{
//load trust anchors into dns client if domain is locally hosted
_dnsServer.AuthZoneManager.LoadTrustAnchorsTo(dnsClient, domain, type);
}
try
{
dnsResponse = await dnsClient.ResolveAsync(domain, type);