NextDNS Denylist Auto-Updater for custom lists

As some of you may know I have been running my own blocklist project. I am also a big fan of NextDNS but they never bothered to include my list and unfortunately they don’t offer custom links.

Now the good news is, NextDNS has API support and someone made a nextdnsctl.

I used his library to automatically sync my own blocklist via Github Actions for some time now and decided to make that compatible with any list you may want to use.

I think more people would be happy using his so I thought to share it here as well.

There are a couple limitations I have to mention up front. If you use the deny list already for your own domains they will be automatically removed. You will need to put them in a list that is included by the workflow. This is needed because you should clean up invalid records and stale domains, which the workflow takes care of, this also to avoid getting too many entries. That is also the second limitation as the denylist becomes very long the denylist page in the dashboard becomes a bit slow to open. Lastly there are API rate limits you may hit when doing a lot of changes, but if failed the rest will be picked up in the next run automatically.

3 Likes