DnsServer icon indicating copy to clipboard operation
DnsServer copied to clipboard

Having repeatable issue with 15.5.1 (server failure)

Open davistw1 opened this issue 2 months ago • 11 comments

The .1 fixed the majority of server failures I was seeing. I am still getting a few errors a hour where I used to get none. One repeat failure is "features.opera-api2.com". It is failing ever time yet it can be resolved via 1.1.1.1 etc. This is very repeatable. Here is the error it throws.

{ "Code": "EXTENDED_DNS_ERROR", "Length": "109 bytes", "Data": { "InfoCode": "Other", "ExtraText": "Resolver exception for features.opera-api2.com. A IN: Object reference not set to an instance of an object." }{ "Code": "EXTENDED_DNS_ERROR", "Length": "109 bytes", "Data": { "InfoCode": "Other", "ExtraText": "Resolver exception for features.opera-api2.com. A IN: Object reference not set to an instance of an object." }

davistw1 avatar Sep 27 '26 12:09 davistw1

Thanks for the feedback. Since this is a resolver exception message due to some bug, there will be a complete error log written for this in Logs > View Logs section. Please check the text logs there to find the relevant error log entry and share it completely here.

ShreyasZare avatar Sep 27 '26 12:09 ShreyasZare

Well after another cache flush it appears it may be ok now. It has ran for 5 hours with no problems...I think you can close this. Sorry for jumping the gun.

davistw1 avatar Sep 27 '26 20:09 davistw1

Thanks for the response. I would still suggest that you search for Object reference not set to an instance of an object. message in the log files and share whatever error log you find. There seems to be some null check missing which caused this error only in specific conditions.

ShreyasZare avatar Sep 28 '26 06:09 ShreyasZare

After updating to 15.5, I had these issues as well, but not all the time - sometimes a reboot/flush would fix it until the next reboot. After updating to 15.5.1, I am still experiencing the same problem. Reboots and cache flushes don't seem to reliably help. This particular message is saying resolver limit reached. I will refrain from rebooting this system/technitium service for the time being in case more info is needed.

Please note that this server is a backup that does not see a lot of traffic, maybe a few hundred requests on any given day unless the primary server goes down.

Stack trace:

TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to recursively resolve the request 'settings-prod-wus2-1-tagged.westus2.cloudapp.azure.com. A IN': Resolver limit reached (MaxOutboundRequests).
   at TechnitiumLibrary.Net.Dns.DnsClient.RecursiveResolveAsync(DnsQuestionRecord question, IDnsCache cache, NetProxy proxy, IPv6Mode ipv6Mode, UInt16 udpPayloadSize, Boolean randomizeName, Boolean qnameMinimization, Boolean dnssecValidation, NetworkAddress eDnsClientSubnet, Int32 retries, Int32 timeout, Int32 concurrency, Int32 maxStackCount, Boolean minimalResponse, Boolean asyncNsResolution, List`1 rawResponses, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 383
   at DnsServerCore.Dns.DnsServer.<>c__DisplayClass188_0.<<DefaultRecursiveResolveAsync>b__2>d.MoveNext() in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5440
--- End of stack trace from previous location ---
   at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func`2 func, Int32 timeout, CancellationToken cancellationToken)
   at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func`2 func, Int32 timeout, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary\TaskExtensions.cs:line 65
   at DnsServerCore.Dns.DnsServer.DefaultRecursiveResolveAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, IDnsCache dnsCache, Boolean dnssecValidation, Boolean skipDnsAppAuthoritativeRequestHandlers, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5436
   at DnsServerCore.Dns.DnsServer.RecursiveResolverBackgroundTaskAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, Boolean advancedForwardingClientSubnet, IReadOnlyList`1 conditionalForwarders, Boolean dnssecValidation, Boolean cachePrefetchOperation, Boolean skipDnsAppAuthoritativeRequestHandlers, TaskCompletionSource`1 taskCompletionSource, ResolverContext context) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5111
[2026-09-28 07:52:17 Local] DNS Server failed to resolve the request 'settings-prod-eus2-1-tagged.eastus2.cloudapp.azure.com. AAAA IN'.
TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to recursively resolve the request 'settings-prod-eus2-1-tagged.eastus2.cloudapp.azure.com. AAAA IN': Resolver limit reached (MaxOutboundRequests) for name servers [ns3-39.azure-dns.org ([2a01:111:4000:10::27]), ns2-39.azure-dns.net ([2620:1ec:8ec:10::27]), ns4-39.azure-dns.info ([2620:1ec:bda:10::27]), ns1-39.azure-dns.com (150.171.10.39), ns3-39.azure-dns.org (13.107.222.39), ns2-39.azure-dns.net (150.171.16.39), ns4-39.azure-dns.info (13.107.206.39), ns1-39.azure-dns.com] at delegation azure.com.
   at TechnitiumLibrary.Net.Dns.DnsClient.RecursiveResolveAsync(DnsQuestionRecord question, IDnsCache cache, NetProxy proxy, IPv6Mode ipv6Mode, UInt16 udpPayloadSize, Boolean randomizeName, Boolean qnameMinimization, Boolean dnssecValidation, NetworkAddress eDnsClientSubnet, Int32 retries, Int32 timeout, Int32 concurrency, Int32 maxStackCount, Boolean minimalResponse, Boolean asyncNsResolution, List`1 rawResponses, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 1946
   at DnsServerCore.Dns.DnsServer.<>c__DisplayClass188_0.<<DefaultRecursiveResolveAsync>b__2>d.MoveNext() in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5440
--- End of stack trace from previous location ---
   at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func`2 func, Int32 timeout, CancellationToken cancellationToken)
   at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func`2 func, Int32 timeout, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary\TaskExtensions.cs:line 65
   at DnsServerCore.Dns.DnsServer.DefaultRecursiveResolveAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, IDnsCache dnsCache, Boolean dnssecValidation, Boolean skipDnsAppAuthoritativeRequestHandlers, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5436
   at DnsServerCore.Dns.DnsServer.RecursiveResolverBackgroundTaskAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, Boolean advancedForwardingClientSubnet, IReadOnlyList`1 conditionalForwarders, Boolean dnssecValidation, Boolean cachePrefetchOperation, Boolean skipDnsAppAuthoritativeRequestHandlers, TaskCompletionSource`1 taskCompletionSource, ResolverContext context) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5111

I didn't previously have stack traces logged, but when I enabled it, this is the first one that popped up.

EDIT: Here's another:

[2026-09-28 08:17:30 Local] DNS Server failed to resolve the request 'cdp1.digicert.com.akamaized.net. A IN'.
TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to recursively resolve the request 'cdp1.digicert.com.akamaized.net. A IN': Resolver limit reached (MaxOutboundRequests) for name servers [a28-64.akam.net ([2600:1480:d800::40]), a44-64.akam.net ([2600:1480:c00::40]), a2-64.akam.net ([2600:1480:7000::40]), a4-64.akam.net ([2600:1480:9000::40]), a46-64.akam.net ([2600:1480:400::40]), a1-64.akam.net ([2600:1401:2::40]), a13-64.akam.net ([2600:1480:800::40]), a42-64.akam.net ([2600:1480:6800::40]), a7-64.akam.net ([2600:1406:32::40]), a7-64.akam.net (23.61.199.64), a46-64.akam.net (23.61.245.64), a13-64.akam.net (2.22.230.64), a2-64.akam.net (95.100.174.64), a28-64.akam.net (95.100.173.64), a4-64.akam.net (72.246.46.64), a1-64.akam.net (193.108.91.64), a44-64.akam.net (2.17.46.64), a42-64.akam.net (184.28.92.64)] at delegation akamaized.net.
   at TechnitiumLibrary.Net.Dns.DnsClient.RecursiveResolveAsync(DnsQuestionRecord question, IDnsCache cache, NetProxy proxy, IPv6Mode ipv6Mode, UInt16 udpPayloadSize, Boolean randomizeName, Boolean qnameMinimization, Boolean dnssecValidation, NetworkAddress eDnsClientSubnet, Int32 retries, Int32 timeout, Int32 concurrency, Int32 maxStackCount, Boolean minimalResponse, Boolean asyncNsResolution, List`1 rawResponses, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 1946
   at DnsServerCore.Dns.DnsServer.<>c__DisplayClass188_0.<<DefaultRecursiveResolveAsync>b__2>d.MoveNext() in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5440
--- End of stack trace from previous location ---
   at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func`2 func, Int32 timeout, CancellationToken cancellationToken)
   at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func`2 func, Int32 timeout, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary\TaskExtensions.cs:line 65
   at DnsServerCore.Dns.DnsServer.DefaultRecursiveResolveAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, IDnsCache dnsCache, Boolean dnssecValidation, Boolean skipDnsAppAuthoritativeRequestHandlers, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5436
   at DnsServerCore.Dns.DnsServer.RecursiveResolverBackgroundTaskAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, Boolean advancedForwardingClientSubnet, IReadOnlyList`1 conditionalForwarders, Boolean dnssecValidation, Boolean cachePrefetchOperation, Boolean skipDnsAppAuthoritativeRequestHandlers, TaskCompletionSource`1 taskCompletionSource, ResolverContext context) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5111
[2026-09-28 08:17:30 Local] DNS Server failed to resolve the request 'cdp1.digicert.com.akamaized.net. AAAA IN'.
TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to recursively resolve the request 'cdp1.digicert.com.akamaized.net. AAAA IN': Resolver limit reached (MaxOutboundRequests) for name servers [a44-64.akam.net ([2600:1480:c00::40]), a46-64.akam.net ([2600:1480:400::40]), a42-64.akam.net ([2600:1480:6800::40]), a2-64.akam.net ([2600:1480:7000::40]), a1-64.akam.net ([2600:1401:2::40]), a7-64.akam.net ([2600:1406:32::40]), a28-64.akam.net ([2600:1480:d800::40]), a4-64.akam.net ([2600:1480:9000::40]), a13-64.akam.net ([2600:1480:800::40]), a44-64.akam.net (2.17.46.64), a2-64.akam.net (95.100.174.64), a46-64.akam.net (23.61.245.64), a42-64.akam.net (184.28.92.64), a13-64.akam.net (2.22.230.64), a1-64.akam.net (193.108.91.64), a7-64.akam.net (23.61.199.64), a28-64.akam.net (95.100.173.64), a4-64.akam.net (72.246.46.64)] at delegation akamaized.net.
   at TechnitiumLibrary.Net.Dns.DnsClient.RecursiveResolveAsync(DnsQuestionRecord question, IDnsCache cache, NetProxy proxy, IPv6Mode ipv6Mode, UInt16 udpPayloadSize, Boolean randomizeName, Boolean qnameMinimization, Boolean dnssecValidation, NetworkAddress eDnsClientSubnet, Int32 retries, Int32 timeout, Int32 concurrency, Int32 maxStackCount, Boolean minimalResponse, Boolean asyncNsResolution, List`1 rawResponses, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 1946
   at DnsServerCore.Dns.DnsServer.<>c__DisplayClass188_0.<<DefaultRecursiveResolveAsync>b__2>d.MoveNext() in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5440
--- End of stack trace from previous location ---
   at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func`2 func, Int32 timeout, CancellationToken cancellationToken)
   at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func`2 func, Int32 timeout, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary\TaskExtensions.cs:line 65
   at DnsServerCore.Dns.DnsServer.DefaultRecursiveResolveAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, IDnsCache dnsCache, Boolean dnssecValidation, Boolean skipDnsAppAuthoritativeRequestHandlers, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5436
   at DnsServerCore.Dns.DnsServer.RecursiveResolverBackgroundTaskAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, Boolean advancedForwardingClientSubnet, IReadOnlyList`1 conditionalForwarders, Boolean dnssecValidation, Boolean cachePrefetchOperation, Boolean skipDnsAppAuthoritativeRequestHandlers, TaskCompletionSource`1 taskCompletionSource, ResolverContext context) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5111

Aerowinder avatar Sep 28 '26 11:09 Aerowinder

@Aerowinder Thanks for the feedback. Do you have have set IPv6 to Preferred mode in the DNS Server? Does querying the domain again after 10 sec fix the issue?

If you have Prefer IPv6 set then change it to Enable IPv6 instead and see if that fixes the issue.

The Resolver limit reached (MaxOutboundRequests) is due to new limits set for recursive resolution. The MaxOutboundRequests is set to 100 so any domain name requiring more than 100 outbound requests will cause the resolution to abort to prevent amplification attacks. At times a domain name may fail to resolve due to that limit, but retrying should help since the next try will use cached data and continue the resolution where it was left earlier.

In any case, avoid flushing cache to fix such issues, it will just worsen it. Retrying after 10 sec will trigger the resolution process. If you have to clear cache, delete it just for that specific domain name instead of flushing it entirely.

ShreyasZare avatar Sep 28 '26 13:09 ShreyasZare

I am now able to directly resolve those previously failed domains from the built-in DNS Client from the affected server.

I am presently using "Prefer IPv6" on both instances. I will change this to "Enable IPv6" for both instances.

When I first upgraded to 15.5.1 on my primary server and rebooted (because I had to update the system as well), the DNS service came back up, but pretty much every request resulted in server failures. Essentially bricked the internet. I will make these changes and see if I can break it again. I wonder if there was a little lag time with the OS getting assigned an IPv6 address via SLAAC. Of course, I didn't think to check that at the time, I just needed to get it working.

EDIT: This appears to be exactly what is happening. All the resolution failures occur prior to the system getting a SLAAC address, and they stop when the system is assigned one, while using "Prefer IPv6". With "Enable IPv6", I only got the resolver limit messages, mostly on Microsoft-owned domains. It looks like "Prefer IPv6" is acting more like IPv6 only?

I did capture logs of the before and after SLAAC assignment, if those might be interesting to you.

Aerowinder avatar Sep 28 '26 13:09 Aerowinder

@Aerowinder Thanks for the response. I am updating the Prefer IPv6 code already to mitigate the issue you saw. Currently, it can tend to be "IPv6 only" and cause failures. The next update scheduled soon will fix this.

But, using Enable IPv6 mode is recommended over Prefer IPv6 as that mode uses balanced approach and works faster in many cases.

ShreyasZare avatar Sep 28 '26 14:09 ShreyasZare

Having the same issue, with DNS requests failing after a certain period, a docker down and up with a cache flush will fix it until i have to do it again sometime later, Will try to collect logs and post here For my settings I have IPV6 enabled(Not set to preferred)

NikhilAlapati avatar Sep 30 '26 17:09 NikhilAlapati

Having the same issue, with DNS requests failing after a certain period, a docker down and up with a cache flush will fix it until i have to do it again sometime later, Will try to collect logs and post here For my settings I have IPV6 enabled(Not set to preferred)

Here is my logs

[2026-09-30 22:00:13 Local] DNS Server failed to resolve the request 'URL... A IN' using forwarders: dns.quad9.net:853 (9.9.9.9), dns.quad9.net:853 (149.112.112.112).
System.NullReferenceException: Object reference not set to an instance of an object.
   at TechnitiumLibrary.Net.Dns.DnsDatagram.IsBlockedResponse() in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsDatagram.cs:line 931
   at TechnitiumLibrary.Net.Dns.DnsCache.CacheResponse(DnsDatagram response, Boolean isDnssecBadCache, String zoneCut) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsCache.cs:line 578
   at TechnitiumLibrary.Net.Dns.DnsClient.<>c__DisplayClass95_0.<<InternalCachedResolveQueryAsync>b__0>d.MoveNext() in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 5207
--- End of stack trace from previous location ---
   at TechnitiumLibrary.Net.Dns.DnsClient.ResolveQueryAsync(DnsQuestionRecord question, Func`2 resolveAsync) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 4321
   at TechnitiumLibrary.Net.Dns.DnsClient.InternalCachedResolveQueryAsync(DnsQuestionRecord question, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 5182
   at DnsServerCore.Dns.DnsServer.DefaultRecursiveResolveAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, IDnsCache dnsCache, Boolean dnssecValidation, Boolean skipDnsAppAuthoritativeRequestHandlers, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5342
   at DnsServerCore.Dns.DnsServer.RecursiveResolverBackgroundTaskAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, Boolean advancedForwardingClientSubnet, IReadOnlyList`1 conditionalForwarders, Boolean dnssecValidation, Boolean cachePrefetchOperation, Boolean skipDnsAppAuthoritativeRequestHandlers, TaskCompletionSource`1 taskCompletionSource, ResolverContext context) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5111

NikhilAlapati avatar Oct 01 '26 01:10 NikhilAlapati

@NikhilAlapati Thanks for the error log. Will get it fixed in upcoming update.

ShreyasZare avatar Oct 01 '26 12:10 ShreyasZare

Technitium DNS Server v15.6 is now available and fixed this issue. Do update and let me know your feedback.

ShreyasZare avatar Oct 03 '26 14:10 ShreyasZare