Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallowed domains must be case insensitive #3115

Closed
3 tasks done
HorayNarea opened this issue May 8, 2021 · 8 comments
Closed
3 tasks done

Disallowed domains must be case insensitive #3115

HorayNarea opened this issue May 8, 2021 · 8 comments
Assignees
Milestone

Comments

@HorayNarea
Copy link

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Issue Details

In the DNS settings one can configure "disallowed domains", queries to these domains actually are not answered but they still appear in the logs and the clients who send these queries appear in the statistics on the dashboard.

Expected Behavior

AGH handles "disallowed domains" exactly like "disallowed clients", so these queries should not appear in logs and statistics.

Actual Behavior

AGH only ignores queries for "disallowed domains" but still includes them in logs and dashboard statistics.

Screenshots

Screenshot:

image
image

Additional Information

I consider this a bug, if you don't agree please understand this as a feature request for a config flag to have both "disallowed"-things be treated alike.

@ameshkov
Copy link
Member

ameshkov commented May 9, 2021

Definitely a bug.

@ameshkov
Copy link
Member

ameshkov commented May 9, 2021

Appears to be a rather simple bug:

  • dig -t a version.bind. @127.0.0.1 -- gets blocked
  • dig -t a VERSION.BIND. @127.0.0.1 -- not blocked

The bug is originally in the https://github.com/AdguardTeam/urlfilter library.

@ameshkov ameshkov changed the title disallowed domains show up in logs & statistics Disallowed domains must be case insensitive May 9, 2021
@DandelionSprout
Copy link
Member

Additional context:

Currently (and for the past 2 years), any queries for domains in Disallowed domains, are simply given a REFUSED result, and the queries are still listed in both AGH's statistics and logs.

As a result, it is far from unusual for AGH installations where port 53 is open, to see their frontpage statistics consist primarily of several dozen webhost port scanners, usually ones from PR-China, Romania, Netherlands, and Russia.

What me and Horay wish for, is for Disallowed domains to be treated the same way Disallowed clients do, so that the queries do not show up in the statistics or logs.

@ameshkov
Copy link
Member

@DandelionSprout that's exactly how disallowed domains work - the queries are simply dropped. You can see REFUSED result only when for some reason domain has passed the check.

adguard pushed a commit that referenced this issue May 11, 2021
Merge in DNS/adguard-home from 3115-domain-case to master

Updates #3115.

Squashed commit of the following:

commit 02b6d27
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Tue May 11 19:56:06 2021 +0300

    all: fix typos

commit cdd1de6
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Tue May 11 19:37:37 2021 +0300

    dnsforward: fix disallowed domains case matching
@EugeneOne1
Copy link
Member

Hello to you, @HorayNarea and @DandelionSprout. We've brought the little fix for this issue. It's available in the latest edge builds as of snapshot f41d5b9. Could you please check, if it works fine now?

@HorayNarea
Copy link
Author

On quick glance it looks like it works 👍
I'll run the edge build for a few hours now to have a real world test.

@DandelionSprout
Copy link
Member

I'm on the beta channel (as opposed to Nightly) and can't test tonight, at least.

@EugeneOne1
Copy link
Member

We'll close the issue for now. Please, feel free to reopen it in case you face it again.

adguard pushed a commit that referenced this issue May 19, 2021
Merge in DNS/adguard-home from 3115-domain-case to master

Updates #3115.

Squashed commit of the following:

commit 02b6d27
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Tue May 11 19:56:06 2021 +0300

    all: fix typos

commit cdd1de6
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Tue May 11 19:37:37 2021 +0300

    dnsforward: fix disallowed domains case matching
heyxkhoa pushed a commit to heyxkhoa/AdGuardHome that referenced this issue Mar 20, 2023
Merge in DNS/adguard-home from 3115-domain-case to master

Updates AdguardTeam#3115.

Squashed commit of the following:

commit 02b6d27
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Tue May 11 19:56:06 2021 +0300

    all: fix typos

commit cdd1de6
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Tue May 11 19:37:37 2021 +0300

    dnsforward: fix disallowed domains case matching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants