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

Regarding the custom filter domain name and IP binding in the filter does not take effect #5226

Closed
3 tasks done
GogogogoDAI opened this issue Dec 2, 2022 · 7 comments
Closed
3 tasks done
Labels

Comments

@GogogogoDAI
Copy link

Prerequisites

  • I have checked the Wiki and Discussions and found no answer

  • I have searched other issues and found no duplicates

  • I want to report a bug and not ask a question

Operating system type

Linux, Other (please mention the version in the description)

CPU architecture

64-bit ARM

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.108.0-b.22

Description

Including the current version has always had this problem
The custom filter domain name binding IP address in the filter does not take effect
The DNS rewrite binding domain name and IP in the filter can be used normally.

@ainar-g
Copy link
Contributor

ainar-g commented Dec 16, 2022

Hello and apologies for the late response. Could you show exactly which rule you're adding and how you're checking it? For example, a dig or an nslookup command.

@ainar-g ainar-g added the waiting for data Waiting for users to provide more data. label Dec 16, 2022
@GogogogoDAI
Copy link
Author

屏幕截图_20230215_193914
屏幕截图_20230215_194004

@ainar-g
Copy link
Contributor

ainar-g commented Feb 15, 2023

You've mentioned in the original post that your AGH is installed onto a Linux system, but the nslookup screenshot looks like it is from a Windows system, which queries 127.1.1.1, which is a local address. If AdGuard Home is installed on another system, please make sure that you've set up your Windows client correctly.

Also make sure that your Blocking mode is set to Default.

@GogogogoDAI
Copy link
Author

Yes, I installed the trial program on the windows system and found that the specified ip still cannot be resolved, ip 127.1.1.1 is the adguardhome address, and the blocked address is 127.10.0.0

@ainar-g
Copy link
Contributor

ainar-g commented Feb 15, 2023

If your Blocking mode is set to Custom IP and that custom IP is 127.10.0.0 then everything is working as expected. If you want to have other IP addresses for these domain names, use the newer and better supported dnsrewrite rules:

|test.com$dnsrewrite=NOERROR;A;0.0.0.0,dnstype=A

@GogogogoDAI
Copy link
Author

Thank you very much for solving my problem, but can you add a mode to use the custom interception ip and the default mode using the /etc/hosts function together?

@ainar-g
Copy link
Contributor

ainar-g commented Feb 15, 2023

I don't think that the support for the /etc/hosts format will expand. We seriously encourage using the more powerful dnsrewrite rules for these types of rewrites.

I'll close this issue, as everything seems to work as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants