...
Incompatible DoH services:
Mullvad
- Yandex
Adlist
Adlist is an integral component of network-level ad blocking, comprising a curated collection of domain names known for serving advertisements. This feature operates by utilizing Domain Name System (DNS) resolution to intercept requests to these domains. When a client device queries a DNS server for a domain listed on the adlist, the DNS resolution process is altered. Instead of returning the actual IP address of the ad-serving domain, the DNS server responds with the IP address 0.0.0.0. This effectively null-routes the request, as 0.0.0.0 is a non-routable meta-address used to denote an invalid, unknown, or non-applicable target. By redirecting ad-related requests in this manner, the adlist feature ensures that advertisement content is not loaded, enhancing network performance and improving the user experience by reducing unwanted ad traffic.
Note |
---|
Before configuring, increase the DNS cache as it's used to store adlist entries. If limit is reached and error in DNS,error topic is printed "adlist read: max cache size reached" |
url | Used to specify the URL of an adlist. |
ssl-verify | Specifies whether to validate the server's SSL certificate when connecting to an online resource. Will use the "/certificate" list in order to verify server validity. |
file | Used to specify a local file path from which to read adlist data |
pause | Temporarily pause the use of all adlist. |
Configuration examples:
Code Block | ||
---|---|---|
| ||
/ip/dns/adlist add url=https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts ssl-verify=no |
To see how many domain names are present and matched, you can run:
Code Block | ||
---|---|---|
| ||
ip dns adlist print
url="https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" ssl-verify=no match-count=122 name-count=164769
|
To create your adlist, you can create a Txt file with the domains. Example:
No Format |
---|
0.0.0.0 example1.com
0.0.0.0 eu1.example.com
0.0.0.0 ex.com
0.0.0.0 com.example.com |
To add it :
Code Block | ||
---|---|---|
| ||
ip dns adlist add file=hostTo verify that it's compiled correctly run print command and the results will show how many hostnames you have added (if the file is created correctly as provided in the example) file=host.txt match-count=0 name-count=4
|