MikroTik
MikroTik routers use the open source RouterOS operating system, which provides routing, wireless networking and firewall services for home and small office networks.
Configure DNS-over-HTTPS
- Access your MikroTik router:
- Open your web browser and go to your router's IP address (usually
192.168.88.1
) - Alternatively, you can use Winbox to connect to your MikroTik router
- Enter your administrator username and password
- Open your web browser and go to your router's IP address (usually
- Import root certificate:
- Download the latest bundle of trusted root certificates: https://curl.se/docs/caextract.html
- Navigate to Files. Click Upload and select the downloaded cacert.pem certificate bundle
- Go to System → Certificates → Import
- In the File Name field, choose the uploaded certificate file
- Click Import
- Configure DNS-over-HTTPS:
- Go to IP → DNS
- In the Servers section, add the following AdGuard DNS servers:
94.140.14.49
94.140.14.59
- Set Allow Remote Requests to Yes (this is crucial for DoH to function)
- In the Use DoH server field, enter the URL of the private AdGuard DNS server:
https://d.adguard-dns.com/dns-query/*******
- Click OK
- Create Static DNS Records:
- In the DNS Settings, click Static
- Click Add New
- Set Name to d.adguard-dns.com
- Set Type to A
- Set Address to
94.140.14.49
- Set TTL to 1d 00:00:00
- Repeat the process to create an identical entry, but with Address set to
94.140.14.59
- Disable Peer DNS on DHCP Client:
- Go to IP → DHCP Client
- Double-click the client used for your Internet connection (usually on the WAN interface)
- Uncheck Use Peer DNS
- Click OK
- Link your IP.
- Test and verify:
- You might need to reboot your MikroTik router for all changes to take effect
- Clear your browser's DNS cache. You can use a tool like https://www.dnsleaktest.com to check if your DNS requests are now routed through AdGuard
使用路由器管理面板
如果您的 Keenetic 路由器不支持 DNS-over-HTTPS 或 DNS-over-TLS 配置,请使用以下指示说明:
- 打开路由器管理面板。 可以通过
192.168.1.1
或192.168.0.1
访问。 - 输入管理员用户名(通常是「admin」)和路由器密码。
- Open Webfig → IP → DNS.
- Select Servers and enter one of 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 地址:
- 请保存设置。
- 关联 IP 地址(如果您有团队版订阅,也可以关联您的专用 IP 地址)。