From 6d5656a9b63060f2a5dab4cb0e050deab88ffef2 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 27 Feb 2022 18:21:04 +0530 Subject: [PATCH] DnsWebService: updated ResolveQuery() to load local zone trust anchors into the dns client. --- DnsServerCore/DnsWebService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DnsServerCore/DnsWebService.cs b/DnsServerCore/DnsWebService.cs index 8a18379d..c2784f99 100644 --- a/DnsServerCore/DnsWebService.cs +++ b/DnsServerCore/DnsWebService.cs @@ -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);