AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home/overview.html
GNU General Public License v3.0
25.64k stars 1.84k forks source link

"DNSSEC Validated" icon near DNSSEC incorrect domain #3017

Open DavidOsipov opened 3 years ago

DavidOsipov commented 3 years ago

System Details:

Describe the bug

I use Unbound + Adguard Home
I turned on "Enable DNSSEC" feature in Adguard home I use www.servfail.sidnlabs.nl and www.dnssec-failed.org domains to check if DNSSEC checks are really working

When DNSSEC checks are turned on in Unbound and Adguard Home:

Expected behavior: No "DNSSEC Validated" icon near www.servfail.sidnlabs.nl and www.dnssec-failed.org domains in Adguard Home, because Unbound has restricted us from entering these domains with SERVFAIL

Actual behavior: DNSSEC3 DNSSEC

When DNSSEC checks are turned off in Unbound and turned on in Adguard Home:

Expected behavior: Domains www.servfail.sidnlabs.nl and www.dnssec-failed.org are inaccessible (SERVFAIL) and no "DNSSEC Validated" icon near them

Actual behavior: DNSSEC 1

P.S. If it's correct behavior of Adguard Home, than "DNSSEC Validated" icon is quite misleading.

ameshkov commented 3 years ago

Yeah, the icon is indeed misleading and we'd better improve it. And not just it, DNSSEC check should be implemented fully and not as it is now: AGH does not perform the validation by itself, it just asks the upstream resolver to do it. The icon indicates the fact that it asked to validate but does not indicate the fact that the validation failed.

ainar-g commented 2 years ago

Additional suggestions from #4258:

Please add a tool-tip for the DNSSEC Icon in the Query Log when DNSSEC is not used (grey icon).

  • Has the it been resolved from local cache?
  • Has it been affected by "optimistic caching"?
  • Has it incorrectly not used DNSSEC when it should have?

In any case, those indicators could probably be more informative.

DavidOsipov commented 2 years ago

I have found out, that the optimistic cache is serving outdated DNSSEC signed responses, which are considered bogus by other DNSSEC validating software like Mozilla Thunderbird DKIM Verifier add-on. Not really a big deal, but can cause troubles for other users.

Proposal: add an option to opt DNSSEC-signed domains out from the optimistic cache.

ameshkov commented 2 years ago

Proposal: add an option to opt DNSSEC-signed domains out from the optimistic cache.

Probably we should simply automatically exclude signed responses (i.e. that have an RRSIG record) from the optimistic cache?