forked from folbricht/routedns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap-resolver.toml
32 lines (28 loc) · 1.22 KB
/
bootstrap-resolver.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Configuration using a bootstrap resolver used to lookup any hostnames
# in the config such as resolver endpoints, or remote blocklist addresses.
# The bootstrap-resolver is loaded first and used for endpoint lookups
# as well as blocklist addresses. If the bootstrap-resolver itself uses
# a hostname, it's possible to configure a bootstrap-address for it.
[bootstrap-resolver]
address = "8.8.8.8:53"
protocol = "udp"
# This resolver references a hostname, unless a bootstrap-address property
# is defined, that hostname will be resolved using the bootstrap-resolver
# above. Setting bootstrap-address in the resolver bypasses the
# bootstrap-resolver and may be beneficial for performance.
[resolvers.google-doh]
address = "https://dns.google/dns-query"
protocol = "doh"
# The blocklist is loaded from a remote server, and the server hostname will
# be resolved with the bootstrap-resolver.
[groups.cloudflare-blocklist]
type = "blocklist-v2"
resolvers = ["google-doh"]
blocklist-refresh = 86400
blocklist-source = [
{format = "regexp", source = "https://raw.githubusercontent.com/cbuijs/accomplist/master/deugniets/routedns.blocklist.regexp.list"},
]
[listeners.local-udp]
address = "127.0.0.1:53"
protocol = "udp"
resolver = "google-doh"