From 484a397911dacfb36b0edb5c76598837d8a6e69a Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Fri, 20 Oct 2023 16:05:33 +0300 Subject: [PATCH] Pull request 184: upd-conf-filtering Squashed commit of the following: commit 3d96c6851ddb22bb371cbb8c0abd8bfe1dad5c5e Author: Stanislav Chzhen Date: Fri Oct 20 15:57:45 2023 +0300 Configuration imp yaml commit f58759b72ec4172776f78af78ec25de39d2319a7 Author: Stanislav Chzhen Date: Fri Oct 20 15:39:02 2023 +0300 Configuration: upd filtering --- Configuration.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Configuration.md b/Configuration.md index 30bac2f..8826491 100644 --- a/Configuration.md +++ b/Configuration.md @@ -646,6 +646,22 @@ Settings are stored in [YAML format](https://en.wikipedia.org/wiki/YAML), possib - `safebrowsing_cache_size`: Safe Browsing cache size, in bytes. - `safesearch_cache_size`: Safe Search cache size, in bytes. - `parental_cache_size`: Parental Control cache size, in bytes. + - `rewrites`: List of legacy DNS rewrites, where `domain` is the domain or + wildcard you want to be rewritten and `answer` is IP address, CNAME + record, `A` or `AAAA` special values. Special value `A` keeps `A` + records from the upstream and `AAAA` keeps `AAAA` values from the + upstream. + + ```yaml + 'rewrites': + - 'domain': example.com + 'answer': 127.0.0.1 + - 'domain': '*.example.com' + 'answer': A + ``` + + - `cache_time`: Time interval in minutes for keeping cache records. + - `filters_update_interval`: Time interval in hours for updating filters. - `blocked_services`: Blocked services settings section: - `ids`: List of blocked services. - `schedule`: Sets periods of inactivity for filtering blocked services.