mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-03 23:34:49 +00:00
DnsWebService: updated ResolveQuery() to load local zone trust anchors into the dns client.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user