Normalize all blocked hosts to return 0.0.0.0 #4317

Closed
opened 2026-03-04 04:57:39 -05:00 by deekerman · 1 comment
Owner

Originally created by @xPaw on GitHub (Mar 14, 2023).

Prerequisites

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

  • I have searched other issues and found no duplicates

  • I want to request a feature or enhancement and not ask a question

Description

What problem are you trying to solve?

Some block lists use 127.0.0.1 instead of 0.0.0.0 for their entries, which is mildly annoying to see my localhost on blocked domains.

For example:

127.0.0.1 cdn.tinypass.com
AdAway Default Blocklist

0.0.0.0 cdn.tinypass.com
Steven Black's List

Furthermore, if different block lists use different IPs, it duplicates both in the dns lookup:

$ nslookup cdn.tinypass.com
Non-authoritative answer:
Name:    cdn.tinypass.com
Addresses:  ::
          127.0.0.1
          0.0.0.0

Proposed solution

Replace all blocked host ips to 0.0.0.0.

I can't think of any valid reason as to why the original ip provided by the block list is used. Does adguard have an allow list of which ips are allowed?

Alternatives considered

Additional information

Originally created by @xPaw on GitHub (Mar 14, 2023). ### Prerequisites - [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer - [X] I have searched other issues and found no duplicates - [X] I want to request a feature or enhancement and not ask a question ### Description #### What problem are you trying to solve? Some block lists use `127.0.0.1` instead of `0.0.0.0` for their entries, which is mildly annoying to see my localhost on blocked domains. For example: ``` 127.0.0.1 cdn.tinypass.com AdAway Default Blocklist 0.0.0.0 cdn.tinypass.com Steven Black's List ``` Furthermore, if different block lists use different IPs, it duplicates both in the dns lookup: ``` $ nslookup cdn.tinypass.com Non-authoritative answer: Name: cdn.tinypass.com Addresses: :: 127.0.0.1 0.0.0.0 ``` #### Proposed solution Replace all blocked host ips to `0.0.0.0`. I can't think of any valid reason as to why the original ip provided by the block list is used. Does adguard have an allow list of which ips are allowed? #### Alternatives considered #### Additional information
deekerman 2026-03-04 04:57:39 -05:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@xPaw commented on GitHub (Mar 14, 2023):

I just realized there is a Blocking mode option in DNS settings.

@xPaw commented on GitHub (Mar 14, 2023): I just realized there is a Blocking mode option in DNS settings.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#4317
No description provided.