DnsServer icon indicating copy to clipboard operation
DnsServer copied to clipboard

Servfail in resolving www.bbc.com using 15.5.0

Open Apachez- opened this issue 2 months ago • 69 comments

Since update from 15.4.0 to 15.5.0 I have had 2-3 sites that randomly didnt want to load but today I catched one to do some deeper troubleshooting of.

Visiting https://bbc.com in the browser ends up with:

This site can’t be reached
www.bbc.com’s server IP address could not be found.

Which is kind of odd for such a large site.

Turns out that bbc.com forwards to www.bbc.com who then CNAME to www.bbc.com.pri.bbc.com where then Technitium DNS-server will fail.

From the same client quering 8.8.8.8 using dig Im getting:

; <<>> DiG 9.20.24-1ubuntu0.3-Ubuntu <<>> @8.8.8.8 www.bbc.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14937
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.bbc.com.			IN	A

;; ANSWER SECTION:
www.bbc.com.		2928	IN	CNAME	www.bbc.com.pri.bbc.com.
www.bbc.com.pri.bbc.com. 300	IN	CNAME	bbc.map.fastly.net.
bbc.map.fastly.net.	52	IN	A	151.101.0.81
bbc.map.fastly.net.	52	IN	A	151.101.128.81
bbc.map.fastly.net.	52	IN	A	151.101.192.81
bbc.map.fastly.net.	52	IN	A	151.101.64.81

;; Query time: 36 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Tue Sep 22 12:34:57 CEST 2026
;; MSG SIZE  rcvd: 166

But doing the same towards technitium Im getting:

; <<>> DiG 9.20.24-1ubuntu0.3-Ubuntu <<>> @192.168.1.20 www.bbc.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 40084
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; EDE: 22 (No Reachable Authority): (No valid response from name servers for www.bbc.com.pri.bbc.com. A IN at delegation bbc.com.)
; EDE: 13 (Cached Error): (www.bbc.com.pri.bbc.com. A IN)
; EDE: 3 (Stale Answer): (www.bbc.com.pri.bbc.com A IN)
;; QUESTION SECTION:
;www.bbc.com.			IN	A

;; ANSWER SECTION:
www.bbc.com.		26660	IN	CNAME	www.bbc.com.pri.bbc.com.

;; Query time: 1 msec
;; SERVER: 192.168.1.20#53(192.168.1.20) (UDP)
;; WHEN: Tue Sep 22 12:36:08 CEST 2026
;; MSG SIZE  rcvd: 237

Using the DNS-client in technitium I can see this in the server logs:

DnsClient failed to recursively resolve the request 'www.bbc.com.pri.bbc.com. A IN': resolver limits reached for name servers [ddns0.bbc.com (148.163.199.129), ddns1.bbc.com (148.163.199.193), dns1.bbc.com (198.51.45.73), dns0.bbc.com (198.51.44.73), ddns1.bbc.co.uk, ddns0.bbc.co.uk, dns0.bbc.co.uk, dns1.bbc.co.uk] at delegation bbc.com.

Along with this in the webgui:

{
  "Metadata": {
    "NameServer": "vyos1.example.com (192.168.1.20)",
    "Protocol": "Udp",
    "DatagramSize": "237 bytes",
    "RoundTripTime": "2.42 ms"
  },
  "EDNS": {
    "UdpPayloadSize": 1232,
    "ExtendedRCODE": "ServerFailure",
    "Version": 0,
    "Flags": "None",
    "Options": [
      {
        "Code": "EXTENDED_DNS_ERROR",
        "Length": "94 bytes",
        "Data": {
          "InfoCode": "NoReachableAuthority",
          "ExtraText": "No valid response from name servers for www.bbc.com.pri.bbc.com. A IN at delegation bbc.com."
        }
      },
      {
        "Code": "EXTENDED_DNS_ERROR",
        "Length": "31 bytes",
        "Data": {
          "InfoCode": "CachedError",
          "ExtraText": "www.bbc.com.pri.bbc.com. A IN"
        }
      },
      {
        "Code": "EXTENDED_DNS_ERROR",
        "Length": "30 bytes",
        "Data": {
          "InfoCode": "StaleAnswer",
          "ExtraText": "www.bbc.com.pri.bbc.com A IN"
        }
      }
    ]
  },
  "DnsClientExtendedErrors": [
    {
      "InfoCode": "NoReachableAuthority",
      "ExtraText": "vyos1.example.com (192.168.1.20) returned RCODE=ServerFailure for www.bbc.com. A IN"
    }
  ],
  "Identifier": 12670,
  "IsResponse": true,
  "OPCODE": "StandardQuery",
  "AuthoritativeAnswer": false,
  "Truncation": false,
  "RecursionDesired": true,
  "RecursionAvailable": true,
  "Z": 0,
  "AuthenticData": false,
  "CheckingDisabled": false,
  "RCODE": "ServerFailure",
  "QDCOUNT": 1,
  "ANCOUNT": 1,
  "NSCOUNT": 0,
  "ARCOUNT": 1,
  "Question": [
    {
      "Name": "www.bbc.com",
      "Type": "A",
      "Class": "IN"
    }
  ],
  "Answer": [
    {
      "Name": "www.bbc.com",
      "Type": "CNAME",
      "Class": "IN",
      "TTL": "26603 (7h23m23s)",
      "RDLENGTH": "18 bytes",
      "RDATA": {
        "Domain": "www.bbc.com.pri.bbc.com"
      },
      "DnssecStatus": "Disabled"
    }
  ],
  "Authority": [],
  "Additional": [
    {
      "Name": "",
      "Type": "OPT",
      "Class": "1232",
      "TTL": "0 (0s)",
      "RDLENGTH": "167 bytes",
      "RDATA": {
        "Options": [
          {
            "Code": "EXTENDED_DNS_ERROR",
            "Length": "94 bytes",
            "Data": {
              "InfoCode": "NoReachableAuthority",
              "ExtraText": "No valid response from name servers for www.bbc.com.pri.bbc.com. A IN at delegation bbc.com."
            }
          },
          {
            "Code": "EXTENDED_DNS_ERROR",
            "Length": "31 bytes",
            "Data": {
              "InfoCode": "CachedError",
              "ExtraText": "www.bbc.com.pri.bbc.com. A IN"
            }
          },
          {
            "Code": "EXTENDED_DNS_ERROR",
            "Length": "30 bytes",
            "Data": {
              "InfoCode": "StaleAnswer",
              "ExtraText": "www.bbc.com.pri.bbc.com A IN"
            }
          }
        ]
      },
      "DnssecStatus": "Disabled"
    }
  ]
}

Clearing/flushing the cache and redo the DNS-client query from webgui I still get:

{
  "Metadata": {
    "NameServer": "vyos1.example.com (192.168.1.20)",
    "Protocol": "Udp",
    "DatagramSize": "203 bytes",
    "RoundTripTime": "112.55 ms"
  },
  "EDNS": {
    "UdpPayloadSize": 1232,
    "ExtendedRCODE": "ServerFailure",
    "Version": 0,
    "Flags": "None",
    "Options": [
      {
        "Code": "EXTENDED_DNS_ERROR",
        "Length": "94 bytes",
        "Data": {
          "InfoCode": "NoReachableAuthority",
          "ExtraText": "No valid response from name servers for www.bbc.com.pri.bbc.com. A IN at delegation bbc.com."
        }
      },
      {
        "Code": "EXTENDED_DNS_ERROR",
        "Length": "31 bytes",
        "Data": {
          "InfoCode": "CachedError",
          "ExtraText": "www.bbc.com.pri.bbc.com. A IN"
        }
      }
    ]
  },
  "DnsClientExtendedErrors": [
    {
      "InfoCode": "NoReachableAuthority",
      "ExtraText": "vyos1.example.com (192.168.1.20) returned RCODE=ServerFailure for www.bbc.com. A IN"
    }
  ],
  "Identifier": 46364,
  "IsResponse": true,
  "OPCODE": "StandardQuery",
  "AuthoritativeAnswer": false,
  "Truncation": false,
  "RecursionDesired": true,
  "RecursionAvailable": true,
  "Z": 0,
  "AuthenticData": false,
  "CheckingDisabled": false,
  "RCODE": "ServerFailure",
  "QDCOUNT": 1,
  "ANCOUNT": 1,
  "NSCOUNT": 0,
  "ARCOUNT": 1,
  "Question": [
    {
      "Name": "www.bbc.com",
      "Type": "A",
      "Class": "IN"
    }
  ],
  "Answer": [
    {
      "Name": "www.bbc.com",
      "Type": "CNAME",
      "Class": "IN",
      "TTL": "28800 (8h)",
      "RDLENGTH": "18 bytes",
      "RDATA": {
        "Domain": "www.bbc.com.pri.bbc.com"
      },
      "DnssecStatus": "Disabled"
    }
  ],
  "Authority": [],
  "Additional": [
    {
      "Name": "",
      "Type": "OPT",
      "Class": "1232",
      "TTL": "0 (0s)",
      "RDLENGTH": "133 bytes",
      "RDATA": {
        "Options": [
          {
            "Code": "EXTENDED_DNS_ERROR",
            "Length": "94 bytes",
            "Data": {
              "InfoCode": "NoReachableAuthority",
              "ExtraText": "No valid response from name servers for www.bbc.com.pri.bbc.com. A IN at delegation bbc.com."
            }
          },
          {
            "Code": "EXTENDED_DNS_ERROR",
            "Length": "31 bytes",
            "Data": {
              "InfoCode": "CachedError",
              "ExtraText": "www.bbc.com.pri.bbc.com. A IN"
            }
          }
        ]
      },
      "DnssecStatus": "Disabled"
    }
  ]
}

Any suggestions for further troubleshooting or is the issue with a setting in technitium or technitium itself?

Apachez- avatar Sep 22 '26 10:09 Apachez-

Thanks for the feedback. The recursive resolver has been updated to have more limits in place to avoid different types of attacks so when cache is empty, the DNS server has to make many requests which is hitting the limit causing the failure. When the cache is built with data for a few TLDs, the limits wont hit and the domain will resolve. This would come up with domain names that resolve through multiple CNAME records as the recursive resolver now has implemented limits that spans across multiple CNAME resolution.

I am checking out the limits once again and will try to increase it a bit to avoid issues. Do share any other domain names you had issue resolving.

ShreyasZare avatar Sep 22 '26 12:09 ShreyasZare

  • x.com
  • abs.twimg.com

What I don't understand: I have set up forwarding to my ISP resolvers. When I add a conditional forwarder for x.com to forward to the same nameservers I set up globally the issue is resolved for x.com. Why the different behaviour between conditionally forwarded and globally forwarded and why does the request work when I send it directly to my ISP instead of going through Technitium DNS.

As far as I understood when I set a global forwarder Technitium DNS should not try to do recursion itself, then why is it hitting those limits? Or is the global forwarder config not working, how can I check this?

ruffy91 avatar Sep 22 '26 16:09 ruffy91

Random errors on things like ts.itunes.apple.com...

davistw1 avatar Sep 22 '26 20:09 davistw1

Its happening here also with multiple domains.

for example.

river.data.ea.com clients4.google.com music.youtube.com

TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to recursively resolve the request 'prodlb.siteintercept.qualtrics.com.cdn.cloudflare.net. HTTPS IN': resolver limits reached for name servers [ns5.cloudflare.net ([2803:f800:52:1:d48b:2cd:ac40:28fe]), ns3.cloudflare.net (162.159.60.252), ns3.cloudflare.net ([2a06:98c1:56:1:2cfa:9492:6ca2:c6fc]), ns3.cloudflare.net (172.64.40.252), ns3.cloudflare.net (108.162.198.252), ns4.cloudflare.net (172.64.40.253), ns4.cloudflare.net ([2a06:98c1:56:1:45a3:de4a:6ca2:c6fd]), ns4.cloudflare.net ([2803:f800:52:1:e69e:46f0:ac40:28fd]), ns4.cloudflare.net (108.162.198.253), ns4.cloudflare.net ([2606:4700:57:1:fd14:b411:a29f:3cfd]), ns4.cloudflare.net (162.159.60.253), ns1.cloudflare.net ([2606:4700:57:1:4e4b:27d7:a29f:3cfa]), ns1.cloudflare.net ([2a06:98c1:56:1:2693:f8af:6ca2:c6fa]), ns1.cloudflare.net (108.162.198.250), ns1.cloudflare.net (162.159.60.250), ns1.cloudflare.net (172.64.40.250), ns1.cloudflare.net ([2803:f800:52:1:1df9:cfa1:ac40:28fa]), ns2.cloudflare.net ([2606:4700:57:1:e6ea:b99c:a29f:3cfb]), ns2.cloudflare.net ([2a06:98c1:56:1:ca7d:4c29:6ca2:c6fb]), ns2.cloudflare.net (172.64.40.251), ns2.cloudflare.net (162.159.60.251), ns2.cloudflare.net ([2803:f800:52:1:4da:414e:ac40:28fb]), ns2.cloudflare.net (108.162.198.251), ns5.cloudflare.net (162.159.60.254), ns5.cloudflare.net (108.162.198.254), ns5.cloudflare.net ([2a06:98c1:56:1:3b6c:6602:6ca2:c6fe]), ns5.cloudflare.net (172.64.40.254), ns5.cloudflare.net ([2606:4700:57:1:cb7b:a51d:a29f:3cfe]), ns3.cloudflare.net ([2803:f800:52:1:b216:ccbe:ac40:28fc]), ns3.cloudflare.net ([2606:4700:57:1:cba:4d93:a29f:3cfc])] at delegation cloudflare.net. ---> TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to resolve the request 'prodlb.siteintercept.qualtrics.com.cdn.cloudflare.net. HTTPS IN': resolver limits reached. at TechnitiumLibrary.Net.Dns.DnsClient.<>c__DisplayClass92_0.<g__DoResolveAsync|1>d.MoveNext() in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 4485

TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to recursively resolve the request 'appboot.dradis.netflix.com. AAAA IN': no valid response from name servers [f.ns.nflxso.net ([2a00:86c0:2009::1]), f.ns.nflxso.net (45.57.9.1), e.ns.nflxso.net (45.57.8.1), e.ns.nflxso.net ([2a00:86c0:2008::1])] at delegation dradis.netflix.com. ---> TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to resolve the request 'appboot.dradis.netflix.com. AAAA IN': request timed out for name server [f.ns.nflxso.net (45.57.9.1)]. ---> System.Net.Sockets.SocketException (110): Connection timed out

root@OpenWrt:~# dig @192.168.1.117 river.data.ea.com

; <<>> DiG 9.20.29 <<>> @192.168.1.117 river.data.ea.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 256 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 800 ; EDE: 23 (Network Error): (Socket error for river.eadpdata.ddns.ea.com. A IN: NetworkUnreachable) ; EDE: 13 (Cached Error): (river.eadpdata.ddns.ea.com. A IN) ; EDE: 3 (Stale Answer): (river.eadpdata.ddns.ea.com A IN) ;; QUESTION SECTION: ;river.data.ea.com. IN A

;; ANSWER SECTION: river.data.ea.com. 30 IN CNAME river.eadpdata.ddns.ea.com.

;; Query time: 0 msec ;; SERVER: 192.168.1.117#53(192.168.1.117) (UDP) ;; WHEN: Tue Sep 22 20:08:32 GMT 2026 ;; MSG SIZE rcvd: 230

root@OpenWrt:~# ^C

root@OpenWrt:~# dig @192.168.1.117 clients4.google.com

; <<>> DiG 9.20.29 <<>> @192.168.1.117 clients4.google.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 36258 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 800 ; EDE: 22 (No Reachable Authority): (No valid response from name servers for clients4.google.com. A IN at delegation google.com.) ; EDE: 13 (Cached Error): (clients4.google.com. A IN) ; EDE: 3 (Stale Answer): (clients4.google.com A IN) ;; QUESTION SECTION: ;clients4.google.com. IN A

;; Query time: 0 msec ;; SERVER: 192.168.1.117#53(192.168.1.117) (UDP) ;; WHEN: Tue Sep 22 20:08:54 GMT 2026 ;; MSG SIZE rcvd: 206

root@OpenWrt:~# dig @192.168.1.117 music.youtube.com

; <<>> DiG 9.20.29 <<>> @192.168.1.117 music.youtube.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 43720 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 800 ; EDE: 22 (No Reachable Authority): (No valid response from name servers for music.youtube.com. A IN at delegation youtube.com.) ; EDE: 13 (Cached Error): (music.youtube.com. A IN) ; EDE: 3 (Stale Answer): (music.youtube.com A IN) ;; QUESTION SECTION: ;music.youtube.com. IN A

;; Query time: 0 msec ;; SERVER: 192.168.1.117#53(192.168.1.117) (UDP) ;; WHEN: Tue Sep 22 20:09:06 GMT 2026 ;; MSG SIZE rcvd: 199

root@OpenWrt:~# dig @192.168.1.117 beacons.gcp.gvt2.com

; <<>> DiG 9.20.29 <<>> @192.168.1.117 beacons.gcp.gvt2.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 59102 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 800 ; EDE: 22 (No Reachable Authority): (No valid response from name servers for beacons.gcp.gvt2.com. A IN at delegation gvt2.com.) ; EDE: 13 (Cached Error): (beacons.gcp.gvt2.com. A IN) ; EDE: 3 (Stale Answer): (beacons.gcp.gvt2.com A IN) ;; QUESTION SECTION: ;beacons.gcp.gvt2.com. IN A

;; Query time: 10 msec ;; SERVER: 192.168.1.117#53(192.168.1.117) (UDP) ;; WHEN: Tue Sep 22 20:09:32 GMT 2026 ;; MSG SIZE rcvd: 208

yahyoh avatar Sep 22 '26 20:09 yahyoh

Thanks everyone for the feedback. I tested and most of the domain names are resolving with empty cache. But it may cause issues when the resolution path taken ends up with name servers whose domain name takes additional hops to resolve, consuming the allocated limits in the resolver causing it to fail to resolve, which ultimately causes the original that was queried domain name to fail to resolve.

I am doing some tests on this issue and planning to push fix for this with an update very soon.

ShreyasZare avatar Sep 23 '26 05:09 ShreyasZare

In the meantime (or for the future), are there any settings that can be adjusted as workaround?

Im thinking like:

  • Client Timeout (default 2000ms)
  • Resolver Timeout (default 1500ms)
  • Resolver Max Stack Count (default 16)
  • Serve Stale (default disabled, often recommended to enable)
  • Serve Stale Max Wait Time (default 1800ms, often recommended to set to 0 if Serve Stale is enabled)

Apachez- avatar Sep 23 '26 06:09 Apachez-

@Apachez- thanks for asking. None of these options will help. But disabling "QNAME Minimization" can mitigate it for some cases since this feature increases the number of lookups being made, consuming more allocated limits in the resolver. You can also add root secondary zone so all TLD data is locally available.

Once cache has built up, these issues should get negligible.

ShreyasZare avatar Sep 23 '26 06:09 ShreyasZare

I can confirm that disabling "QNAME Minimization" is a valid workaround at least for the www.bbc.com usecase.

That is disable "QNAME Minimization" and flush the cache and www.bbc.com will resolve at first attempt.

With "QNAME Minimization" enabled and flushing the cache www.bbc.com will fail with the error posted earlier.

Apachez- avatar Sep 23 '26 07:09 Apachez-

Seems disabling QNAME Minimization + enabling secondary root zone helped to lower the failures by big margin, but need to run them for longer to confirm.

i cleared the statics 2 hours ago after the change.

Image

yahyoh avatar Sep 23 '26 14:09 yahyoh

In my case (x.com, abs.twimage.com) disabling QNAME minimization + flush cache did not help, however disabling the local secondary root zone immediately solved the problem even without flushing the cache again

ruffy91 avatar Sep 23 '26 19:09 ruffy91

I am also having this issue, primarily with amazon.com. I've found that several changes, including disabling QNAME minimization or switching from DoH to UDP forwarders seems to help the problem for a while, but it comes back in a matter of minutes or hours.

dodgeboy avatar Sep 23 '26 20:09 dodgeboy

From what I a reading, ShreyasZare (the creator) has the problem identified and is going to release an update to fix this issue.

davistw1 avatar Sep 23 '26 20:09 davistw1

Seems disabling QNAME Minimization + enabling secondary root zone helped to lower the failures by big margin, but need to run them for longer to confirm.

i cleared the statics 2 hours ago after the change.

Image

After couple of hours still pretty low, lets see if it will stay like that..

Image

yahyoh avatar Sep 23 '26 20:09 yahyoh

This "enabling secondary root zone" - where can I read more about it?

Or do you mean that the NS information for (example) ".com" would be created as a zone and by that preloaded so the DNS-server dont have to query the NS defined by root-hints and by that save one roundtrip when cache is clean?

Apachez- avatar Sep 24 '26 05:09 Apachez-

I am also having this issue, primarily with amazon.com. I've found that several changes, including disabling QNAME minimization or switching from DoH to UDP forwarders seems to help the problem for a while, but it comes back in a matter of minutes or hours.

@dodgeboy this issue is related to recursive resolver and does not affect forwarding. QNAME minimization is also a feature that works only for recursive resolver.

If you see any Server Failure issues with forwarding then check the error logs in Logs > View Logs section to know the reason for it. Share the error logs here if you need help with it.

ShreyasZare avatar Sep 24 '26 07:09 ShreyasZare

This "enabling secondary root zone" - where can I read more about it?

Or do you mean that the NS information for (example) ".com" would be created as a zone and by that preloaded so the DNS-server dont have to query the NS defined by root-hints and by that save one roundtrip when cache is clean?

@Apachez- You can add a root secondary zone from the Add Zone option in the Zones tab. In there just select the Secondary ROOT Zone option and add the zone. This will create a root zone which will directly sync all records from actual root servers so that you have a locally running root server yourself. Once the root zone is synced, your DNS server will query root servers only to sync the zone while all root zone queries will get answered from the local root zone.

ShreyasZare avatar Sep 24 '26 07:09 ShreyasZare

So basically what the root-hints file already does but with the addition of that the NS for each TLD is already resolved and by that Technitium doesnt have to query root servers of which NS are for ".com" since it now already know this even with a clean cache?

Apachez- avatar Sep 24 '26 08:09 Apachez-

So basically what the root-hints file already does but with the addition of that the NS for each TLD is already resolved and by that Technitium doesnt have to query root servers of which NS are for ".com" since it now already know this even with a clean cache?

Root hints file is just hints that are used for priming by DNS servers. The root zone is an authoritative copy or actual root zone that is synced with proper zone transfer from root servers. So, you got a local root server which answers exactly the same way a root server answers. So, the zone has all TLD related delegation records and can also answer NXDOMAIN authoritatively. Everything is DNSSEC signed and validated with ZONEMD.

ShreyasZare avatar Sep 24 '26 08:09 ShreyasZare

I am also having this issue, primarily with amazon.com. I've found that several changes, including disabling QNAME minimization or switching from DoH to UDP forwarders seems to help the problem for a while, but it comes back in a matter of minutes or hours.

@dodgeboy this issue is related to recursive resolver and does not affect forwarding. QNAME minimization is also a feature that works only for recursive resolver.

If you see any Server Failure issues with forwarding then check the error logs in Logs > View Logs section to know the reason for it. Share the error logs here if you need help with it.

It seems as soon as I enable the secondary root zone the dns server stops forwarding and starts resolving itself.

[2026-09-24 18:52:14 UTC] [192.168.200.1:61925] [admin] Secondary zone was enabled: [2026-09-24 18:52:19 UTC] DNS Server has started zone refresh for Secondary zone: [2026-09-24 18:52:19 UTC] Saved zone file for domain: [2026-09-24 18:52:20 UTC] ZONEMD validation was completed successfully for the Secondary zone: [2026-09-24 18:52:20 UTC] DNS Server successfully refreshed '' Secondary zone from: [2001:7fd::1] [2026-09-24 18:52:21 UTC] DNS Server failed to resolve the request 'x.com. A IN'. TechnitiumLibrary.Net.Dns.DnsClientNoResponseException: DnsClient failed to recursively resolve the request 'x.com. A IN': no valid response from name servers [d.u10.twtrdns.net, d.r10.twtrdns.net, c.u10.twtrdns.net, b.u10.twtrdns.net, b.r10.twtrdns.net, a.u10.twtrdns.net, a.r10.twtrdns.net, c.r10.twtrdns.net, d.u10.twtrdns.net, d.r10.twtrdns.net, c.u10.twtrdns.net, b.u10.twtrdns.net, b.r10.twtrdns.net, a.u10.twtrdns.net, a.r10.twtrdns.net, c.r10.twtrdns.net] at delegation x.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, List1 rawResponses, ResolverContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Dns\DnsClient.cs:line 1922 at DnsServerCore.Dns.DnsServer.<>c__DisplayClass189_0.<<RecursiveResolverBackgroundTaskAsync>b__0>d.MoveNext() in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5106 --- End of stack trace from previous location --- at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func2 func, Int32 timeout, CancellationToken cancellationToken) at TechnitiumLibrary.TaskExtensions.TimeoutAsync[T](Func2 func, Int32 timeout, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary\TaskExtensions.cs:line 65 at DnsServerCore.Dns.DnsServer.RecursiveResolverBackgroundTaskAsync(DnsQuestionRecord question, NetworkAddress eDnsClientSubnet, Boolean advancedForwardingClientSubnet, IReadOnlyList1 conditionalForwarders, Boolean dnssecValidation, Boolean cachePrefetchOperation, Boolean skipDnsAppAuthoritativeRequestHandlers, TaskCompletionSource`1 taskCompletionSource, ResolverContext context) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 5102 [2026-09-24 18:52:25 UTC] Saved zone file for domain:

ruffy91 avatar Sep 24 '26 18:09 ruffy91

Seems the issue still happening even with secondary root enabled & Qname minimization disabled, but somehow it seems dig through AAAA records works?

root@OpenWrt:~# dig @192.168.1.117 music.youtube.com

; <<>> DiG 9.20.29 <<>> @192.168.1.117 music.youtube.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 23924 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ; EDE: 22 (No Reachable Authority): (No valid response from name servers for music.youtube.com. A IN at delegation youtube.com.) ; EDE: 13 (Cached Error): (music.youtube.com. A IN) ; EDE: 3 (Stale Answer): (music.youtube.com A IN) ;; QUESTION SECTION: ;music.youtube.com. IN A

;; Query time: 0 msec ;; SERVER: 192.168.1.117#53(192.168.1.117) (UDP) ;; WHEN: Thu Sep 24 21:18:31 GMT 2026 ;; MSG SIZE rcvd: 199

root@OpenWrt:~# dig @192.168.1.117 music.youtube.com

; <<>> DiG 9.20.29 <<>> @192.168.1.117 music.youtube.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 50781 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ; EDE: 22 (No Reachable Authority): (No valid response from name servers for music.youtube.com. A IN at delegation youtube.com.) ; EDE: 13 (Cached Error): (music.youtube.com. A IN) ; EDE: 3 (Stale Answer): (music.youtube.com A IN) ;; QUESTION SECTION: ;music.youtube.com. IN A

;; Query time: 0 msec ;; SERVER: 192.168.1.117#53(192.168.1.117) (UDP) ;; WHEN: Thu Sep 24 21:18:45 GMT 2026 ;; MSG SIZE rcvd: 199

root@OpenWrt:~# dig @192.168.1.117 music.youtube.com AAAA

; <<>> DiG 9.20.29 <<>> @192.168.1.117 music.youtube.com AAAA ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30136 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ; EDE: 3 (Stale Answer): (youtube-ui.l.google.com AAAA IN) ;; QUESTION SECTION: ;music.youtube.com. IN AAAA

;; ANSWER SECTION: music.youtube.com. 148 IN CNAME youtube-ui.l.google.com. youtube-ui.l.google.com. 30 IN AAAA 2a00:1450:4019:810::200e youtube-ui.l.google.com. 30 IN AAAA 2a00:1450:4019:819::200e youtube-ui.l.google.com. 30 IN AAAA 2a00:1450:4019:815::200e youtube-ui.l.google.com. 30 IN AAAA 2a00:1450:4019:816::200e

;; Query time: 0 msec ;; SERVER: 192.168.1.117#53(192.168.1.117) (UDP) ;; WHEN: Thu Sep 24 21:22:28 GMT 2026 ;; MSG SIZE rcvd: 229

root@OpenWrt:~# dig @192.168.1.117 clients4.google.com AAAA

; <<>> DiG 9.20.29 <<>> @192.168.1.117 clients4.google.com AAAA ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53768 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ; EDE: 3 (Stale Answer): (clients.l.google.com AAAA IN) ;; QUESTION SECTION: ;clients4.google.com. IN AAAA

;; ANSWER SECTION: clients4.google.com. 297 IN CNAME clients.l.google.com. clients.l.google.com. 30 IN AAAA 2a00:1450:4019:818::200e

;; Query time: 0 msec ;; SERVER: 192.168.1.117#53(192.168.1.117) (UDP) ;; WHEN: Thu Sep 24 21:22:51 GMT 2026 ;; MSG SIZE rcvd: 134

yahyoh avatar Sep 24 '26 21:09 yahyoh