Files
routedns/cmd/routedns/example-config/blocklist-hosts.toml
2020-04-29 20:22:41 -06:00

26 lines
809 B
TOML

[resolvers.cloudflare-dot]
address = "1.1.1.1:853"
protocol = "dot"
[groups.cloudflare-blocklist]
type = "blocklist-v2"
resolvers = ["cloudflare-dot"] # Anything that passes the filter is sent on to this resolver
blocklist-format = "hosts" # "domain", "hosts" or "regexp", defaults to "regexp"
blocklist = [ # Define the names to be blocked
'127.0.0.1 www.evil.com', # Spoofed
'0.0.0.0 www.blocked.com', # Blocked
'127.0.0.1 www.domain.com', # IP4 and IP6 addresses can be spoofed independently
'::1 www.domain.com',
':: ads.com',
]
[listeners.local-udp]
address = ":53"
protocol = "udp"
resolver = "cloudflare-blocklist"
[listeners.local-tcp]
address = ":53"
protocol = "tcp"
resolver = "cloudflare-blocklist"