-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathexample-config.yml
More file actions
36 lines (33 loc) · 1.06 KB
/
example-config.yml
File metadata and controls
36 lines (33 loc) · 1.06 KB
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
---
log: # optional
stdout: stdout # default: stdout, log-to-file on Windows is not supported
stderr: /var/log/dohproxy.err # default: stderr, log-to-file on Windows is not supported
level: info # default: debug, choices: debug, info, warn(warning), error, dpanic, panic, fatal
listen:
- type: udp
address: 127.0.0.1:53
- type: tcp
address: 127.0.0.1:53
upstreams:
google-public:
type: dns
address: 8.8.8.8:53
my-corp-dns:
type: dns
address: 192.168.53.1:53
doh-get-with-proxy:
type: doh-get
address: https://cloudflare-dns.com/dns-query
proxy: socks5://127.0.0.1:1080
doh-post:
type: doh-post
address: https://cloudflare-dns.com/dns-query
rules:
- fqdn:cloudflare-dns.com google-public
- fqdn:www.my-dev-server.com 10.0.31.1
- keyword:mycorp.com my-corp-dns
- suffix:mybiz.com my-corp-dns
- suffix:never-response.com blackhole
- suffix:adxxx.com reject
- wildcard:* doh-post
...