TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
3.86k stars 403 forks source link

Feature request: More block lists and documentation #715

Closed noseshimself closed 8 months ago

noseshimself commented 10 months ago

Hi!

As I did not find a description of the block list syntax I don't know what is possible if I want to generate my own list.

1) Is it possible to use pihole lists "as is"? Probably not, as

2) Could you add https://github.com/hagezi/dns-blocklists to your quick settings?

3) Add an option to the blocking settings to enter a URL or upload a file and have a syntax/validity check performed?

ShreyasZare commented 10 months ago

Hi!

Thanks for the post.

As I did not find a description of the block list syntax I don't know what is possible if I want to generate my own list.

The format is described in the UI itself in the Settings > Blocking section: "The expected file format is standard hosts file format, plain text file containing list of domains to block, wildcard block list file format, or Adblock Plus file format."

So, you can just create a text file with a list of domain names one below another and use that file as the block list.

  1. Is it possible to use pihole lists "as is"? Probably not, as

Yes, you can use the same block lists that you use with pihole as-is.

  1. Could you add https://github.com/hagezi/dns-blocklists to your quick settings?

I am not really inclined towards adding a large number of lists in the quick settings. But there is a feature planned to allow customizing the various lists on the UI (block lists, forwarders, etc.) so that you can have a set of custom entries and not depend on the software update to add them.

  1. Add an option to the blocking settings to enter a URL or upload a file and have a syntax/validity check performed?

The block list files have really simple syntax so such a feature wont be of much use IMO.

Also, for having your own block list, its recommended to use the Allow and Block sections in the GUI which are easier to use for a single instance.