Commit Graph

30 Commits

Author SHA1 Message Date
bloved d84cc29392 ADDED: parallel queries to to multiple DNS servers
new setting ZabovParallelQueries: max number of parallel queries
2021-10-29 15:34:49 +02:00
bloved bc2470e344 updated vendor dependencies and golang to 1.15 2021-09-16 14:18:18 +02:00
bloved e2a625a92e if the DNS response Rcode contains an error the cache expires after just 10 seconds.
this should limit the cache in case of temporary upstream DNS errors.
2021-09-16 09:40:03 +02:00
bloved 2fe0b7b0c2 - added whitelist documentation 2021-05-11 10:36:00 +02:00
bloved ef9f912cf7 - added simple stats python script
- added WhiteList database
- updated license to EUPL
2021-05-11 10:32:48 +02:00
bloved f018377b44 Merge branch 'master' into master 2021-01-30 09:20:59 +00:00
bloved d74f2a973e - BUG FIX: preserving DNS RCode in Zabov responses (SetReply(query) resets it to RcodeSuccess)
Some DNS client (such as MS Windows) misbehave in case of always positive responses
2021-01-29 19:47:01 +01:00
bloved c56789e193 - BUG FIX: IP Groups: blank timetable was not allowed; timetable & cfg con now be blank or undefined
- FIX: enable response compression by default to be compatible with bogus DNS clients not understanding responses split to multiple UDP packets (FIX failure of Amazon PrimeVideo on LG WebOS)
- new conf-specific setting "cache": allows disabling cache on configuration basis (default: cache is enabled)
- updated documentation
- added more debug logs
2021-01-29 13:01:18 +01:00
bloved 9b4e4fbcb9 - optimization: blackholeip is parsed only once at startup 2021-01-25 17:00:34 +01:00
bloved b9f17b3c19 - network down is ignored if the selected configuration is local responder 2021-01-24 10:51:01 +01:00
LowEel 13dd24b7b5 Merge pull request 'master' (#1) from bloved/zabov:master into master
Reviewed-on: https://git.keinpfusch.net/loweel/zabov/pulls/1
2021-01-22 16:07:13 +00:00
bloved 0752a7e443 - FIX: Query logger: moved to different thread to serialize access to log file 2021-01-17 16:15:12 +01:00
bloved 749029ba5b - FIX: optional settings were not optional
- Dockerfile: updated golang image to 1.15.6
- config.json: restored minimal settings
- added config.sample.json with all advanced settings
- urls-domains-updated.txt: removed/updated obsolete urls (CHEF-KOCH, malwaredomains.com)
2021-01-17 15:28:20 +01:00
bloved 740e0a387b - removed unused/commented code
- ZabovCreateKDB is called only on active configurations
2021-01-16 23:26:29 +01:00
bloved d2f8601185 - added new setting: default/global timetable ( config->zabov->timetable )
This table will be used for any client that is not already included in an IP group
2021-01-16 18:54:31 +01:00
bloved 85ff0dac52 - FIX: timetable eval time as "local time" (no UTC)
- FIX: Dockerfile: added timezone configuration (defaults to CET), use TZ env var to change it
2021-01-16 00:11:54 +01:00
bloved 0f046cf18e - config:
- added new global setting "debugdbpath": if set to a directory name enables DNS queries logging in CLIENTIP-DATE.log file format
2021-01-15 18:50:59 +01:00
bloved aef07c50d6 - single/double and local lists: ignore blank/comment lines 2021-01-15 13:28:15 +01:00
bloved 946a2245cc - if upstream DNS is missing fallbacks on localresponder if defined, else on "127.0.0.53:53" as last chance 2021-01-15 00:55:08 +01:00
bloved 31e05cb177 - config:
- added "debug" mode
- updated documentation in README.md
- BL downloader threads: added 2 seconds delay to allow local DNS service go up & running
2021-01-14 20:25:10 +01:00
bloved c96c9f23e2 - disabled verbose logs
- updated documentation in README.md
2021-01-14 17:15:27 +01:00
bloved cfabc60645 - config:
- unused configurations are disabled to avoid wasting resources
2021-01-14 15:38:46 +01:00
bloved 15ec9f49ac - stats: if "SET" to zero, stat is removed 2021-01-14 00:20:23 +01:00
bloved 945709f24e - config:
- more sanity checks
  - added localresponder: if set use specified DNS server for local domains
  - ipaliases is now used in DNS responses (works same as /etc/hosts file)
- ForwardQuery(): accept param to avoid cache
2021-01-13 23:38:33 +01:00
bloved e86ead83b7 - config
- sanity checks
  - parsing of timetables
- removed unused global variables (moved at config level)
- added new stat: DNS request for each "CONFIG"
- implemented configuration from ip groups / timetables
2021-01-13 22:30:04 +01:00
bloved 5e94032cd0 - killfile stats: incremented only when adding a new domain in BL
- Malformed lines stats: stats are reset at refresh; ignoring blank/comment lines
2021-01-12 13:35:36 +01:00
bloved b6dfee64a6 - WIP:
- new json configuration: added multiple configs, ip groups/ip aliases and timetables
  - added multiple configurations:
    - each configuration has his own upstream, singlefilters, doublefilters, blackholeip hostsfile
    - cache DB is global to all configs
    - BL downloader and parser is optimized: each BL source is downloaded/parsed only once
- TODO:
  - implement configuration selection based on source IPs and timetables
  - unused code cleanup
2021-01-12 00:04:34 +01:00
LowEel 5c5e4e4417 first commit 2020-10-08 22:14:07 +02:00
LowEel 05afb0dace Delete 'README.md' 2020-10-08 20:13:27 +00:00
LowEel 4dde7cf2c1 Initial commit 2020-10-08 20:13:07 +00:00