dns_server: support query smartdns server ip

This commit is contained in:
Nick Peng
2022-05-21 02:18:44 +08:00
parent dae263444f
commit 94b84cd32c
5 changed files with 238 additions and 48 deletions

View File

@@ -311,8 +311,6 @@ rtt min/avg/max/mdev = 5.954/6.133/6.313/0.195 ms
* **检测上游服务是否配置成功**
* 方法一
执行
```shell
@@ -329,22 +327,15 @@ rtt min/avg/max/mdev = 5.954/6.133/6.313/0.195 ms
Non-authoritative answer:
smartdns name = smartdns.
```
* 方法二
使用 `nslookup` 查询域名(例如 `www.baidu.com`),查看结果中 IP 地址是否**只有一个**,如有多个 IP 地址返回,则表示未生效,请多尝试几个域名检查。
或执行
```shell
$ nslookup www.baidu.com 192.168.1.1
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
www.baidu.com canonical name = www.a.shifen.com.
Name: www.a.shifen.com
Address: 14.215.177.38
$ nslookup smartdns
```
查看命令结果是否有解析出路由器的IP地址如果是则表示生效。
4. 启动服务
勾选配置页面中的 `Enable启用`来启动 SmartDNS。