UniFi
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.
The newer UniFi firmware recently added support for DNS-over-HTTPS. UniFi refers to this feature as Encrypted DNS.
配置 DNS-over-HTTPS
Follow these instructions if your UniFi router supports DNS-over-HTTPS.
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.
Obtain the DNS-over-HTTPS URL that is used to calculate the DNS Stamp URL.
- Go to the AdGuard DNS Private Dashboard.
- Proceed to Encrypted DNS → Custom and enter the following DNS server settings:
- Device type: 'Router'
- Device brand: 'Unifi'
- Device name: Use your Unifi device name
- Click Next.
- 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).
Generate a DNS stamp using the DNSCrypt DNS Stamp Calculator and set it.
- Protocol: DNS-over-HTTPS
- Host name: d.adguard-dns.com
- Path: /dns-query/123456abc (replace 123456abc with the value obtained from your AdGuard DNS Private Dashboard)
- Untick
- No filter
- No logs
- Copy the DNS stamp URL (e.g., sdns://AgcAAAAAA…)
Turn on DNS-over-HTTPS in UniFi.
- 登录 Ubiquiti UniFi 控制器。
- Go to Settings → Security.
- Click Protection.
- Proceed to Encrypted DNS → Custom and enter the following DNS server addresses.
- Server Name: 'AdGuard DNS'
- DNS Stamp: DNS stamp URL copied from above
- 点击「保存」。
使用路由器管理面板
Use these instructions if your UniFi router does not support the DNS-over-HTTPS or DNS-over-TLS configuration.
- 登录 Ubiquiti UniFi 控制器。
- 转至「设置」→「网络」。
- 单击「编辑网络」→「WAN」。
- Proceed to Common Settings → DNS Server and enter the following DNS server addresses:
- IPv4 地址:
94.140.14.49和94.140.14.59 - IPv6 地址:
2a10:50c0:0:0:0:0:ded:ff和2a10:50c0:0:0:0:0:dad:ff
- IPv4 地址:
- 点击「保存」。
- 返回「网络」。
- 选择「编辑网络」→「LAN」。
- 找到「DHCP 名称服务器」并选择「手动」。
- 在「DNS 服务器 1」字段中输入您的网关地址。 Alternatively, you can enter the AdGuard DNS server addresses in the DNS Server 1 and DNS Server 2 fields:
- IPv4 地址:
94.140.14.49和94.140.14.59 - IPv6 地址:
2a10:50c0:0:0:0:0:ded:ff和2a10:50c0:0:0:0:0:dad:ff
- IPv4 地址:
- 请保存设置。
- 关联 IP 地址(如果您有团队版订阅,也可以关联您的专用 IP 地址)。