Detect context.DeadlineExceeded
[dns-over-https.git] / doh-server / doh-server.conf
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
33
34
35
36
37
38
39
40
41
# HTTP listen port
listen = [
    "127.0.0.1:8053",
    "[::1]:8053",
]
 
# TLS certification file
# If left empty, plain-text HTTP will be used.
# You are recommended to leave empty and to use a server load balancer (e.g.
# Caddy, Nginx) and set up TLS there, because this program does not do OCSP
# Stapling, which is necessary for client bootstrapping in a network
# environment with completely no traditional DNS service.
cert = ""
 
# TLS private key file
key = ""
 
# HTTP path for resolve application
path = "/dns-query"
 
# Upstream DNS resolver
# If multiple servers are specified, a random one will be chosen each time.
upstream = [
    "1.1.1.1:53",
    "1.0.0.1:53",
    "8.8.8.8:53",
    "8.8.4.4:53",
]
 
# Upstream timeout
timeout = 10
 
# Number of tries if upstream DNS fails
tries = 3
 
# Only use TCP for DNS query
tcp_only = false
 
# Enable logging
verbose = false