You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/dns/dnsproxy-doh.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ But should work on any Linux distributionm, maybe with some minor changes.
12
12
13
13
You just need to download it from the [releases page](https://github.com/AdguardTeam/dnsproxy/releases). Choose your architecture and download the binary.
14
14
15
-
For this guide we will use the `dnsproxy-linux-amd64-v0.61.1.tar.gz` binary available at https://github.com/AdguardTeam/dnsproxy/releases/download/v0.61.1/dnsproxy-linux-amd64-v0.61.1.tar.gz
15
+
For this guide we will use the `dnsproxy-linux-amd64-v0.61.1.tar.gz` binary available at `https://github.com/AdguardTeam/dnsproxy/releases/download/v0.61.1/dnsproxy-linux-amd64-v0.61.1.tar.gz`
16
16
17
17
18
18
```bash
@@ -26,23 +26,32 @@ mv linux-amd64/dnsproxy ./
26
26
### Configuring `dnsproxy` to run on startup
27
27
28
28
1. Copy the `dnsproxy` binary to `/usr/bin`:
29
+
29
30
```bash
30
31
sudo cp ./dnsproxy /usr/bin/
31
32
```
33
+
32
34
2. Create a `dnsproxy` user to run the daemon:
35
+
33
36
```bash
34
37
sudo useradd -s /usr/sbin/nologin -r -M dnsproxy
35
38
```
39
+
36
40
3. Allow the `dnsproxy` user to run the `dnsproxy` binary:
41
+
37
42
```bash
38
43
sudo chown dnsproxy:dnsproxy /usr/bin/dnsproxy
39
44
```
45
+
40
46
4. Create a service file for`dnsproxy`:
47
+
41
48
```bash
42
49
sudo nano /etc/systemd/system/dnsproxy.service
43
50
```
51
+
44
52
And copy the following into `/etc/systemd/system/dnsproxy.service`.
45
53
This will control the running of the service and allow it to run on startup:
54
+
46
55
```ini
47
56
[Unit]
48
57
Description=DNS Proxy over HTTPS
@@ -59,13 +68,17 @@ mv linux-amd64/dnsproxy ./
59
68
[Install]
60
69
WantedBy=multi-user.target
61
70
```
71
+
62
72
5. Enable the `systemd` service to run on startup, then start the service and check its status:
73
+
63
74
```bash
64
75
sudo systemctl enable dnsproxy
65
76
sudo systemctl start dnsproxy
66
77
sudo systemctl status dnsproxy
67
78
```
79
+
68
80
6. Now test that it is working! Run the following `dig` command, a response should be returned similar to the one below:
0 commit comments