mirror of
https://github.com/minoplhy/DNSserver.git
synced 2024-11-24 10:16:54 +00:00
Create doh-server.conf
This commit is contained in:
parent
3470f36d09
commit
a235621f09
36
configuration/doh-server.conf
Normal file
36
configuration/doh-server.conf
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Original author : aaflalo.me https://www.aaflalo.me/2018/10/tutorial-setup-dns-over-https-server/#Configuration
|
||||||
|
# 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 = [
|
||||||
|
"tcp:127.0.0.1:5353",
|
||||||
|
"udp:127.0.0.1:5353",
|
||||||
|
]
|
||||||
|
|
||||||
|
# Upstream timeout
|
||||||
|
timeout = 60
|
||||||
|
|
||||||
|
# Number of tries if upstream DNS fails
|
||||||
|
tries = 10
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
verbose = false
|
Loading…
Reference in New Issue
Block a user