mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-04-04 19:59:23 +00:00
DnsServer: Updated RecursiveResolveAsync() forwarder implementation to use ConditionalForwardingZoneCut option to trim CNAME records in response to allow the DNS server to query each CNAME separately for cases when conditional forwarder is configured for a CNAME domain.
This commit is contained in:
@@ -2235,6 +2235,7 @@ namespace DnsServerCore.Dns
|
||||
dnsClient.Concurrency = _forwarderConcurrency;
|
||||
dnsClient.UdpPayloadSize = _udpPayloadSize;
|
||||
dnsClient.DnssecValidation = dnssecValidation;
|
||||
dnsClient.ConditionalForwardingZoneCut = question.Name; //adding zone cut to allow CNAME domains to be resolved independently to handle cases when private/forwarder zone is configured for them
|
||||
|
||||
response = await dnsClient.ResolveAsync(question);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user