dnscrypt-proxy/dnscrypt-proxy/dnscrypt-proxy.toml

187 lines
4.0 KiB
TOML
Raw Normal View History

2018-01-10 12:01:49 +01:00
2018-01-17 09:50:21 +01:00
##############################################
# #
# dnscrypt-proxy configuration #
# #
##############################################
2018-01-10 13:33:06 +01:00
2018-01-17 09:50:21 +01:00
##################################
# Global settings #
##################################
2018-01-10 13:33:06 +01:00
## List of servers to use
## If this line is commented, all registered servers will be used
# server_names = ['dnscrypt.org-fr']
2018-01-10 12:01:49 +01:00
2018-01-10 13:33:06 +01:00
## List of local addresses and ports to listen to. Can be IPv4 and/or IPv6.
listen_addresses = ['127.0.0.1:53', '[::1]:53']
2018-01-10 12:01:49 +01:00
2018-01-10 13:33:06 +01:00
## Require servers defined by remote sources to satisfy specific properties
# Server must support DNS security extensions
require_dnssec = false
# Server must not log user queries
2018-01-18 13:04:50 +01:00
require_nolog = true
# Server must not enforce its own blacklist (for parental control, ads blocking...)
require_nofilter = true
2018-01-10 19:49:39 +01:00
## Whether to the server as a background process (linux only)
## Do not set to true if you are using systemd
2018-01-10 13:33:06 +01:00
2018-01-10 12:01:49 +01:00
daemonize = false
2018-01-10 13:33:06 +01:00
## Always use TCP to connect to upstream servers
2018-01-10 12:01:49 +01:00
force_tcp = false
2018-01-10 13:33:06 +01:00
## Timeout, in milliseconds
2018-01-10 12:01:49 +01:00
timeout = 2500
2018-01-10 13:33:06 +01:00
## Delay, in minutes, after which certificates are reloaded
2018-01-10 12:01:49 +01:00
cert_refresh_delay = 30
2018-01-10 13:33:06 +01:00
2018-01-17 09:50:21 +01:00
#########################
# Filters #
#########################
2018-01-10 17:23:20 +01:00
## Immediately respond to IPv6-related queries with an empty response
## This makes things faster when there is no IPv6 connectivity
block_ipv6 = false
2018-01-10 13:33:06 +01:00
2018-01-17 09:50:21 +01:00
##################################################################################
# Route queries for specific domains to a dedicated set of servers #
##################################################################################
2018-01-17 12:34:05 +01:00
## Example map entries (one entry per line):
2018-01-17 16:06:30 +01:00
## example.com 9.9.9.9
## example.net 9.9.9.9,8.8.8.8
2018-01-16 00:23:16 +01:00
# forwarding_rules = 'forwarding-rules.txt'
2018-01-17 09:50:21 +01:00
###########################
# DNS cache #
###########################
2018-01-10 18:32:05 +01:00
## Enable a basic DNS cache to reduce outgoing traffic
cache = true
## Cache size
cache_size = 256
## Minimum TTL for cached entries
2018-01-13 23:52:44 +01:00
cache_min_ttl = 600
## Maxmimum TTL for cached entries
cache_max_ttl = 86400
## TTL for negatively cached entries
cache_neg_ttl = 60
2018-01-17 09:50:21 +01:00
###############################
# Query logging #
###############################
## Log client queries to a file
2018-01-17 09:44:03 +01:00
[query_log]
2018-01-17 09:50:21 +01:00
## Path to the query log file (absolute, or relative to the same directory as the executable file)
2018-01-17 09:50:21 +01:00
# file = 'query.log'
2018-01-17 09:44:03 +01:00
2018-01-17 09:50:21 +01:00
## Query log format (currently supported: tsv and ltsv)
format = 'tsv'
2018-01-17 09:44:03 +01:00
## Only log these query types, to reduce verbosity. Keep empty to log everything.
# logged_qtypes = ['A', 'MX']
2018-01-17 09:50:21 +01:00
######################################################
# Pattern-based blocking (blacklists) #
######################################################
## Blacklists are made of one pattern per line. Example of valid patterns:
2018-01-17 16:06:30 +01:00
##
2018-01-17 09:50:21 +01:00
## example.com
## *sex*
## ads.*
## ads*.example.*
## ads*.example[0-9]*.com
2018-01-17 09:44:03 +01:00
2018-01-17 17:03:42 +01:00
[blacklist]
2018-01-17 09:50:21 +01:00
## Path to the file of blocking rules (absolute, or relative to the same directory as the executable file)
2018-01-17 09:50:21 +01:00
# blacklist_file = 'blacklist.txt'
2018-01-17 17:03:42 +01:00
## Optional path to a file logging blocked queries
# log_file = 'blocked.log'
2018-01-17 17:03:42 +01:00
## Optional log format: tsv or ltsv (default: tsv)
# log_format = 'tsv'
2018-01-17 09:50:21 +01:00
2018-01-17 09:44:03 +01:00
2018-01-17 09:50:21 +01:00
#########################
# Servers #
#########################
2018-01-10 13:33:06 +01:00
## Remote lists of available servers
## Recommended: change the cache_file location to an absolute path
2018-01-13 23:52:44 +01:00
[sources]
[sources.'proxy v1 list from github']
url = 'https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v1/dnscrypt-resolvers.csv'
minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
cache_file = 'dnscrypt-resolvers.csv'
format = 'v1'
2018-01-18 23:54:37 +01:00
refresh_delay = 168
2018-01-13 23:52:44 +01:00
## Local, static list of available servers
2018-01-10 13:33:06 +01:00
2018-01-10 12:01:49 +01:00
[servers]
[servers.'dnscrypt.org-fr']
provider_name = '2.dnscrypt-cert.fr.dnscrypt.org'
address = '212.47.228.136:443'
public_key = 'E801:B84E:A606:BFB0:BAC0:CE43:445B:B15E:BA64:B02F:A3C4:AA31:AE10:636A:0790:324D'