mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-04-26 10:57:50 +00:00
Add support for type prefix for upstream addresses
Add support for DNS-over-TLS upstream addresses Remove tcp_only configuration option
This commit is contained in:
@@ -27,11 +27,16 @@ path = "/dns-query"
|
||||
|
||||
# Upstream DNS resolver
|
||||
# If multiple servers are specified, a random one will be chosen each time.
|
||||
# You can use "udp", "tcp" or "tcp-tls" for the type prefix.
|
||||
# For "udp", UDP will first be used, and switch to TCP when the server asks to
|
||||
# or the response is too large.
|
||||
# For "tcp", only TCP will be used.
|
||||
# For "tcp-tls", DNS-over-TLS (RFC 7858) will be used to secure the upstream connection.
|
||||
upstream = [
|
||||
"1.1.1.1:53",
|
||||
"1.0.0.1:53",
|
||||
"8.8.8.8:53",
|
||||
"8.8.4.4:53",
|
||||
"udp:1.1.1.1:53",
|
||||
"udp:1.0.0.1:53",
|
||||
"udp:8.8.8.8:53",
|
||||
"udp:8.8.4.4:53",
|
||||
]
|
||||
|
||||
# Upstream timeout
|
||||
@@ -40,9 +45,6 @@ timeout = 10
|
||||
# Number of tries if upstream DNS fails
|
||||
tries = 3
|
||||
|
||||
# Only use TCP for DNS query
|
||||
tcp_only = false
|
||||
|
||||
# Enable logging
|
||||
verbose = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user