From 8cddcda7ab1cca72d8bebccfcb228e3f0d7435a5 Mon Sep 17 00:00:00 2001 From: Cottand Date: Tue, 14 Nov 2023 16:31:57 +0000 Subject: [PATCH] update docs --- doc/src/Configuration.md | 62 +++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/doc/src/Configuration.md b/doc/src/Configuration.md index f1e6f7b..1549f5d 100644 --- a/doc/src/Configuration.md +++ b/doc/src/Configuration.md @@ -3,21 +3,6 @@ If leng.toml is not found the default configuration will be used. If it is found Here is the default configuration: ```toml -# list of sources to pull blocklists from, stores them in ./sources -sources = [ - "https://mirror1.malwaredomains.com/files/justdomains", - "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts", - "https://sysctl.org/cameleon/hosts", - "https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt", - "https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt", - "https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt" -] - -# list of locations to recursively read blocklists from (warning, every file found is assumed to be a hosts-file or domain list) -sourcedirs = [ - "sources" -] - # log configuration # format: comma separated list of options, where options is one of # file:@ @@ -36,36 +21,47 @@ bind = "0.0.0.0:53" # address to bind to for the API server api = "127.0.0.1:8080" -# response to blocked queries with a NXDOMAIN -nxdomain = false - -# ipv4 address to forward blocked queries to -nullroute = "0.0.0.0" - -# ipv6 address to forward blocked queries to -nullroutev6 = "0:0:0:0:0:0:0:0" - # concurrency interval for lookups in miliseconds interval = 200 # question cache capacity, 0 for infinite but not recommended (this is used for storing logs) questioncachecap = 5000 -# manual blocklist entries -blocklist = [] - -# manual whitelist entries - comments for reference -whitelist = [ - # "getsentry.com", - # "www.getsentry.com" -] - # manual custom dns entries - comments for reference customdnsrecords = [ # "example.mywebsite.tld IN A 10.0.0.1" # "example.other.tld IN CNAME wikipedia.org" ] +[Blocking] + # response to blocked queries with a NXDOMAIN + nxdomain = false + # ipv4 address to forward blocked queries to + nullroute = "0.0.0.0" + # ipv6 address to forward blocked queries to + nullroutev6 = "0:0:0:0:0:0:0:0" + # manual blocklist entries + blocklist = [] + # list of sources to pull blocklists from, stores them in ./sources + sources = [ + "https://mirror1.malwaredomains.com/files/justdomains", + "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts", + "https://sysctl.org/cameleon/hosts", + "https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt", + "https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt", + "https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt" + ] + # list of locations to recursively read blocklists from (warning, every file found is assumed to be a hosts-file or domain list) + sourcedirs = ["sources"] + # manual blocklist entries + blocklist = [] + # manual whitelist entries - comments for reference + whitelist = [ + # "getsentry.com", + # "www.getsentry.com" + ] + + [Upstream] # Dns over HTTPS provider to use.