An open API service indexing awesome lists of open source software.

https://github.com/zatvobor/adlist

Bundling hosts files and use it on RouterOS driven devices
https://github.com/zatvobor/adlist

ad-blocker adlist hosts mikrotik routeros

Last synced: 14 days ago
JSON representation

Bundling hosts files and use it on RouterOS driven devices

Awesome Lists containing this project

README

          

## adlist

This is a quite simple utility for managing `NXDOMAIN` static DNS records driven by RouterOS.
You will be able to specify as many `hosts` files you have and get a sorted and uniq bundle as a `.auto.rsc` script.

The resulted bundle has a form:

```
:do {
:local hosts {"example.com";"sub.+\\.example\\.com";};
:foreach host in=$hosts do={
:do {
:if ($host ~ "\\.\\+") do={
/ip/dns/static/add regexp=$host type=NXDOMAIN comment=example;
} else={
/ip/dns/static/add name=$host type=NXDOMAIN comment=example;
};
} on-error={ :nothing };
};
};
```

I've added a `submodule` [which contains a curated list](https://github.com/StevenBlack/hosts) of hosts, in case if you don't have any.

See `mkadlist.sh` before you hit it and change it for your needs.