DNSSEC validation disfunctional by default
Prerequisites
-
[x] I have checked the Wiki and Discussions and found no answer
-
[x] I have searched other issues and found no duplicates
-
[x] I want to report a bug and not ask a question or ask for help
-
[x] I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
FreeBSD, AMD64 (aka x86_64)
Installation
Other (please mention in the description)
Setup
On a router, DHCP is handled by the router
AdGuard Home version
0.107.78
Action
I’m using Adguard Home Remote (v9.4.2) to manage AGH on 3 FWs, and after the last couple updates I’ve noticed the DNSSEC validation is not working during regular AGH running activities.
Expected result
The DNSSEC functionality is not broken however, because specific DNSSEC queries are answered correctly.
Actual result
The following has been tested on iOS and Linux machines on all 3 FWs with consistent results:
Browsing or nslookup of .gov domains ( everything .gov is DNSSEC enabled by mandate for years ) - no DNSSEC validation in the logs.
Dig + dnssec for the same domains on the same machines - dnssec validation is happening.
Additional information and/or screenshots
Below is a screenshot of how the logs appear during regular browsing activities vs dig queries.
I think this issue is worth investigating further. Simply ticking on the DNSSEC box may give the illusion that things are working properly but the logs tell a different story.
Thanks again for AGH, cannot wait to see the new interface.
I am using AdGuardHome 0.107.78 in a FreeBSD jail. I use a mobileconfig profile on my iOS devices, and I use Private DNS feature on Android devices. My DNS upstream is unbound (local resolver with DNSSEC enabled).
For me, the issue is not caused by AGH, but by the clients themselves. But perhaps I'm wrong. The requests in red square are sent from a iPhone, and the green ones are sent from an Android phone. My conclusions are no DNSSEC query are requested by an iPhone, but they are by Android client. I noticed this behaviour since the version 0.107.75 and DNSSEC enablement feature by default.
@alelaba I don’t have Android devices to test but to my knowledge there’s no browser or app ( other than a dedicated DNS app like DNS Inspector on iOS ) that would perform DNSSEC queries by default along with regular A / AAAA queries.
OTOH, once you enable DNSSEC validation in AGH/Unbound/other resolver the results of any DNS query must be validated by DNSSEC if available before the answer is sent back to the dns client.
What appears we have now are DNSSEC queries/answers on client’s demand - when the expectation is DNSSEC always on.
If I am not wrong, DNSSEC validation is always done by the resolver, but the DNSSEC validation flag only appears in AGH console if the client requests it.
Maybe a developer will be able to confirm or not this supposition?
DNS validation is always made by the DNS server when the server is enabled for it.
When its enabled the server must always validate the domain no matter what and it must provide the FLAG e.g the info if the domain is or is not DNSSEC secured.
If a client requested DNSSEC validation than that FLAG is as well visible on the client. But this does not change the fact that the server always must validate and thus it should be always present on the server itself.
Hello! This expected behavior rather than a DNSSEC validation failure. When enable_dnssec is enabled, AGH sets the DNSSEC flags in requests sent to the upstream resolver. However, the DNSSEC indicator in Query Log is based on the AD flag in the response sent to the client. Regular clients usually do not request DNSSEC explicitly, while dig +dnssec does, which explains the difference. Could you please confirm whether Query Log is expected to show upstream DNSSEC validation independently of the client’s DNSSEC flags?
I think we already established that the AGH has a defect and doesn’t perform any DNSSEC duties regardless of whether enable_dnssec button is On or Off.
As seen in the logs, when AD flag is present in the query then the logs correctly show the result of the DNSSEC query. Not seeing DNSSEC results while having enable_dnssec set to On means that the AD flag is not set by AGH on each query-as it would be expected.
DNSSEC is a security feature after all. If you cannot show in the logs the 3 states:
- no DNSSEC zone
- DNSSEC Ok
- DNSSEC Fail
while enable_dnssec is on, for each DNS query then the entire code can be dropped from AGH and we’ll promise to believe that the AD flag is set.
Regular clients usually do not request DNSSEC explicitly, while dig +dnssec does, which explains the difference. Could you please confirm whether Query Log is expected to show upstream DNSSEC validation independently of the client’s DNSSEC flags?
In other words, enable_dnssec is supposed to do the DNSSEC work for all the clients that cannot.
In yet another words, in case I’m right and the AGH devs look into this matter I believe it would be fixed as a P2 High bug.
Otherwise, as I said, the entire code can be dropped and the enable_dnssec button renamed as MakeBelieveSecurity - which in the current state will be just as effective.
The absence of the AD indicator in Query Log does not by itself prove that DNSSEC validation was skipped. enable_dnssec makes AGH request DNSSEC data from the upstream resolver, while answer_dnssec reflects the AD flag in the response returned to the client. Regular clients may not request DNSSEC explicitly, unlike dig +dnssec. To confirm a functional bug, please test a deliberately DNSSEC-invalid domain such as dnssec-failed.org through AGH: a correctly validating resolver should return SERVFAIL
First drill, AGH on port 5335
Second drill, Unbound
Both with DNSSEC validation enabled.
AGH returns DNSSEC data, Unbound SERVFAIL.
‘root@OPNsense:~ # root@OPNsense:~ # drill -D dnssec-failed.org 127.0.0.1:5335 ;; ->>HEADER<<- opcode: QUERY, rcode: NXDOMAIN, id: 41021 ;; flags: qr rd ra ad ; QUERY: 1, ANSWER: 0, AUTHORITY: 4, ADDITIONAL: 0 ;; QUESTION SECTION: ;; 127.0.0.1:5335. IN A
;; ANSWER SECTION:
;; AUTHORITY SECTION: . 40337 IN NSEC aaa. NS SOA RRSIG NSEC DNSKEY ZONEMD . 40337 IN RRSIG NSEC 8 0 86400 20260824050000 20260811040000 57780 . mXyXgWP7M8t+c7XAGZtZsNHoBWfe66rn0Z3MotNi9a9Ojk/d2tD6FfSZ457Q9PJhFbR775QYSV6GDytwjXLdA3xjrfyhwdNHzUz2XsfEMS5+PmDptkeHvPmwKTh6i/PSx0dj7HCT9oBSqNfYwXZw6w9wySCGqto+6ubajG3OHe11ixn67pVYqXRCBOe8G0Rew0g17fgk73McvwtdUDne5vynKqTsjDOtZxfnMxULsUVpVeYtbIT6wyQw5DRZyOb1d1u1MIPBikymlZUTWRn/rLykiQg/fzeIQsZt7FW0D9OlJ+2xK9BUc5mD9tIk/QsaUVrGxsDzTtW0i25eriViWg== . 581 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2026081100 1800 900 604800 86400 . 40181 IN RRSIG SOA 8 0 86400 20260824050000 20260811040000 57780 . jNUYiA7mFEMi2FvON30rfFNNjfo06F9uX0dtGfRfCiJUDfLTJjyK3EaEvYi/Fyimwbz0fK+51VzzcGKj1tXMNiuKeOYH2v2DNwPi18bCe104Kp8Jk2yU3A63MJgu+pRwq1ioBzrg/FZMkPQvaavUQo0802umcEbZRbGHJ3C2I9b/ULNX+RZzayU6QBTTvknhejpifeMSGeTdkwS/I+n+XlhHhp9UWPgxY4B9RQvI4HHKZ7zh+6otyMpU8fBh4HnIXq/lf85CtBkIo0U4F/2rq5uZ3R6twf4GuDPoUAp7axaTPOLJyTns+v70SXuuGEQxuJRHIaPc6nyE9PK+o3I3nA==
;; ADDITIONAL SECTION:
;; Query time: 3 msec ;; EDNS: version 0; flags: do ; udp: 1232 ;; SERVER: 127.0.0.1 ;; WHEN: Tue Aug 11 02:06:41 2026 ;; MSG SIZE rcvd: 716 root@OPNsense:~ # root@OPNsense:~ # root@OPNsense:~ # root@OPNsense:~ # drill -D dnssec-failed.org ;; ->>HEADER<<- opcode: QUERY, rcode: SERVFAIL, id: 4329 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;; dnssec-failed.org. IN A
;; ANSWER SECTION:
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 5021 msec ;; EDNS: version 0; flags: do ; udp: 1232 ;; SERVER: 127.0.0.1 ;; WHEN: Tue Aug 11 02:10:37 2026 ;; MSG SIZE rcvd: 46 root@OPNsense:~ #
The first test does not actually query dnssec-failed.org through AGH. The Question Section shows 127.0.0.1:5335, meaning drill interpreted the address as the domain name, and the output does not confirm port 5335. Please retry with the correct syntax, for example:
drill -D -p 5335 dnssec-failed.org @127.0.0.1
Until this test returns SERVFAIL from AGH, the reported result does not demonstrate a DNSSEC validation failure in AGH.
Sorry my syntax was wrong indeed.
So…servfail is correct.
But the main issue remains, in the absence of a client that actively requests validation everything else will show up in the logs as not authenticated-so why the wasted space? Running diagnostic commands once in a blue moon is hardly a justification for it.
I sincerely hope the AGH team will reconsider their position on this issue. It would be a missed opportunity to keep things as they are, and hardly an incentive for anyone to use DNSSEC as long as that information won’t be reflected in the logs without using additional tools.
The corrected test confirms that AGH returns SERVFAIL for dnssec-failed.org, so DNSSEC validation is working as expected. The remaining concern is about displaying the upstream validation result in Query Log when the client does not request DNSSEC. This is a feature/UX request rather than a bug. Please open a separate feature request if you would like this behavior to be changed; this issue can be closed
No you’re right, this issue can be closed.
As for opening another ticket for a feature request…I don’t see the point. A decision has been made here and apparently nobody found it to be an absurdity.
Thanks for the report If a new problem arises, feel free to talk about it and open a new issue.