-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprivatedns
More file actions
42 lines (27 loc) · 1.05 KB
/
Copy pathprivatedns
File metadata and controls
42 lines (27 loc) · 1.05 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
37
38
39
40
41
42
$ cat /etc/dnscrypt-proxy/dnscrypt-proxy.toml
# /etc/dnscrypt-proxy/dnscrypt-proxy.toml
# The address the proxy will listen on (local machine, standard DNS port)
listen_addresses = ['127.0.0.1:53']
# Use only the server defined in the [static] section below
server_names = ['quad9-doh']
# Force the use of DoH (DNS-over-HTTPS)
force_tcp = true
# DNS cache settings
cache = true
cache_size = 4096
# Minimal logging
log_level = 2
# Static definition for Quad9
[static]
[static.'quad9-doh']
stamp = 'sdns://AgYAAAAAAAAACDkuOS45LjEwILAZIHRLu3bJqwU-AeB7fgUORz0g95976kNfr-Q8nSQvE2RuczEwLnF1YWQ5Lm5ldDo0NDMKL2Rucy1xdWVyeQ'
$ cat /etc/systemd/resolved.conf.d/config.conf
[Resolve]
# Use Quad9's non-blocking IPv4 and IPv6 addresses with SNI for DoT
DNS=127.0.0.1
# Route all traffic through these servers
Domains=~.
finally, in your wireguard conf under interfaces:
PostUp = ip route add 9.9.9.10 dev enp3s0 via $(ip route show default dev enp3s0 | awk '{print $3}')
PostDown = ip route del 9.9.9.10 dev enp3s0
(replace interface with the one that you are using)