Skip to content

Commit a174994

Browse files
authored
Merge pull request #317 from adriankylam/patch-1
Update unifi.md
2 parents 9c0dd45 + db24f22 commit a174994

File tree

1 file changed

+39
-1
lines changed
  • docs/private-dns/connect-devices/routers

1 file changed

+39
-1
lines changed

docs/private-dns/connect-devices/routers/unifi.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,45 @@ title: UniFi
33
sidebar_position: 10
44
---
55

6-
The UiFi router (commonly known as Ubiquiti's UniFi series) has a number of advantages that make it particularly suitable for home, business, and enterprise environments. Unfortunately, it does not support encrypted DNS, but it is great for setting up AdGuard DNS via linked IP.
6+
The UiFi router, commonly known as the Ubiquiti UniFi series, has a number of advantages that make it particularly suitable for home, business, and enterprise environments.
7+
8+
The newer UniFi firmware recently added support for DNS-over-HTTPS. UniFi refers to this feature as *Encrypted DNS*.
9+
10+
## Configure DNS-over-HTTPS
11+
12+
Follow these instructions if your UniFi router supports DNS-over-HTTPS.
13+
14+
UiFi routers use a DNS Stamp URL to specify the DNS-over-HTTPS URL. This URL must be calculated using your private DNS-over-HTTPS URL.
15+
16+
Obtain the DNS-over-HTTPS URL that is used to calculate the DNS Stamp URL.
17+
18+
1. Go to the AdGuard DNS Private Dashboard.
19+
1. Proceed to *Encrypted DNS**Custom* and enter the following DNS server settings:
20+
- Device type: 'Router'
21+
- Device brand: 'Unifi'
22+
- Device name: '(use your Unifi device name)
23+
1. Click *Next*.
24+
1. Scroll to *Use DNS server addresses**DNS-over-HTTPS* and take note of the DNS-over-HTTPS URL (e.g., https://d.adguard-dns.com/dns-query/123456abc).
25+
26+
Generate a DNS Stamp using the [DNSCrypt DNS Stamp Calculator](https://dnscrypt.info/stamps/), and set it:
27+
28+
1. Protocol: DNS-over-HTTPS
29+
1. Host name: d.adguard-dns.com
30+
1. Path: /dns-query/123456abc (replace 123456abc with the value obtained from your AdGuard DNS Private Dashboard)
31+
1. Untick
32+
- No filter
33+
- No logs
34+
1. Copy the DNS Stamp URL (e.g., sdns://AgcAAAAAA…)
35+
36+
Turn on DNS-over-HTTPS in UniFi
37+
38+
1. Log in to the Ubiquiti UniFi controller.
39+
1. Go to *Settings**Security*.
40+
1. Click *Protection*.
41+
1. Proceed to *Encrypted DNS**Custom* and enter the following DNS server addresses.
42+
- Server Name: 'AdGuard DNS'
43+
- DNS Stamp: DNS Stamp URL copied from above
44+
1. Click *Save*.
745

846
## Use your router admin panel
947

0 commit comments

Comments
 (0)