# optional: definition, which DNS resolver(s) should be used for queries to the domain (with all sub-domains). Multiple resolvers must be separated by a comma
# Example: Query client.fritz.box will ask DNS server 192.168.178.1. This is necessary for local network, to resolve clients by host name
##conditional:
# optional: if false (default), return empty result if after rewrite, the mapped resolver returned an empty answer. If true, the original query will be sent to the upstream resolver
# Example: The query "blog.example.com" will be rewritten to "blog.fritz.box" and also redirected to the resolver at 192.168.178.1. If not found and if `fallbackUpstream` was set to `true`, the original query "blog.example.com" will be sent upstream.
# Usage: One usecase when having split DNS for internal and external (internet facing) users, but not all subdomains are listed in the internal domain.
## fallbackUpstream: false
# optional: replace domain in the query with other domain before resolver lookup in the mapping
# if > 0, deletes log files which are older than ... days
## logRetentionDays: 7
# optional: Max attempts to create specific query log writer, default: 3
## creationAttempts: 1
# optional: Time between the creation attempts, default: 2s
## creationCooldown: 2s
# optional: Which fields should be logged. You can choose one or more from: clientIP, clientName, responseReason, responseAnswer, question, duration. If not defined, it logs all fields
## fields:
## - clientIP
## - duration
# optional: Blocky can synchronize its cache and blocking state between multiple instances through redis.
##redis:
# Server address and port or master name if sentinel is used
## address: redismaster
# Username if necessary
## username: usrname
# Password if necessary
## password: passwd
# Database, default: 0
## database: 2
# Connection is required for blocky to start. Default: false
## required: true
# Max connection attempts, default: 3
## connectionAttempts: 10
# Time between the connection attempts, default: 1s
## connectionCooldown: 3s
# Sentinal username if necessary
## sentinelUsername: usrname
# Sentinal password if necessary
## sentinelPassword: passwd
# List with address and port of sentinel hosts(sentinel is activated if at least one sentinel address is configured)
# optional: use these DNS servers to resolve blacklist urls and upstream DNS servers. It is useful if no system DNS resolver is configured, and/or to encrypt the bootstrap queries.
# optional: Log level (one from debug, info, warn, error). Default: info
## level: info
# optional: Log format (text or json). Default: text
## format: text
# optional: log timestamps. Default: true
## timestamp: true
# optional: obfuscate log output (replace all alphanumeric characters with *) for user sensitive data like request domains or responses to increase privacy. Default: false