Created
October 3, 2022 15:39
-
-
Save chr-lei/c90efa9a962b3816a5cd6fe38f6221f6 to your computer and use it in GitHub Desktop.
Sample dnsproxy configuration for ControlD upstream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config.yaml - source: | |
# https://github.com/AdguardTeam/dnsproxy/blob/master/config.yaml.dist | |
# also reference: https://github.com/AdguardTeam/dnsproxy/blob/master/README.md | |
# | |
# --- | |
# Bootstrap DNS servers - these are used to resolve any hostnames in the upstream or | |
# fallback resolvers specified later. These can be ISP DNS servers or public DNS | |
# servers like Google or Cloudflare. | |
bootstrap: | |
- "8.8.8.8:53" | |
- "1.1.1.1:53" | |
# | |
# --- | |
# Upstream resolvers - these are what dnsproxy will send queries to. | |
# For ControlD you'll want one of your resolvers specified here, | |
# or use one of the free resolvers. | |
# These can be plain DNS, or DOH/DOT/DOQ, or in DNS Stamp format. | |
# Find your resolvers at: | |
# https://controld.com/control-panel/filters?option=my-resolvers&overlay=account | |
# DNS stamps can be generated at https://dnscrypt.info/stamps | |
# You can specify additional resolvers for specific domains, too (for example, | |
# if you have local/internal domains on your home network.) | |
# More info on that is on the dnsproxy GitHub page. | |
upstream: | |
- https://dns.controld.com/abcde12345/device-name | |
- "[/mylocal.domain/anotherlocal.domain/]192.168.10.1" | |
# | |
# --- | |
# Fallback servers - these are only used if one of the upstreams cannot be reached | |
# or return SERVFAIL. Optional, but nice to have to prevent "OMG the net is broken!" | |
# panic in the household. :) | |
# These can be plain DNS or DOH/DOT/DOQ/DNSCrypt or a DNS Stamp. | |
fallback: | |
- 9.9.9.9 | |
- 149.112.112.112 | |
# | |
# Caching settings - optional, but can reduce the number | |
# of outbound queries on a busy network | |
# Enable cache | |
cache: true | |
# Set memory limit for cache - 8 MB is plenty for a network of ~15 devices. | |
cache-size: 8192000 | |
# | |
# Standard config.yaml values provided by Adguard | |
# I haven't had any reason to change these. | |
max-go-routines: 0 | |
ratelimit: 0 | |
udp-buf-size: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment