vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
16.69k stars 3.08k forks source link

[Bug] 指定(第二)DNS 服务器 无效 #2547

Closed zgc closed 1 year ago

zgc commented 2 years ago

Verify Steps

OpenClash Version

v0.45.35-beta

Bug on Environment

Official OpenWrt

Bug on Platform

Linux-armv8

To Reproduce

openclash指定第二dns服务器到SmartDNS 127.0.0.1#6053,域名列表 xxx.com, SmartDNS配置了address xxx.com/127.0.0.1, dnspod配置了xxx.com -> 1.1.1.1, nslookup -port=6053 xxx.com 192.168.2.1 返回 127.0.0.1, nslookup -port=7874 xxx.com 192.168.2.1 返回 1.1.1.1

Describe the Bug

nslookup -port=7874 xxx.com 192.168.2.1 返回 1.1.1.1 应该返回 127.0.0.1 才对吧?

OpenClash Log

OpenClash Config

No response

Expected Behavior

nslookup -port=7874 xxx.com 192.168.2.1 应该返回SmartDNS里配置的 127.0.0.1

Screenshots

No response

zgc commented 2 years ago

我想把xxx.com所有子域名都指向第二dns服务器,是应该配置 +.xxx.com 吗?

vernesong commented 2 years ago

第二服务器是通过dnsmasq实现的,直接查询7874就绕过dnsmasq了

zgc commented 2 years ago

第二服务器是通过dnsmasq实现的,直接查询7874就绕过dnsmasq了

明白,那配置 +.xxx.com 是代表 xxx.com 所有子域名都指向第二dns服务器吗?

zgc commented 2 years ago
WX20220718-002700@2x

1658075275378

WX20220718-002826@2x

换了Meta 内核之后,用着用着突然间就出不了墙,我自己弄个shell脚本 https://raw.githubusercontent.com/zgc/openwrt-nanopi-r2s/openwrt-lean/scripts/check_openclash_connect.sh ,五分钟检查一下,检查了日志,没发觉有什么报错之类的

eightsheep67 commented 2 years ago

Author

我也是,最新的meta alpha内核。会突然无法科学,openclash界面也显示github 谷歌都连接不上,有时候过一会儿又自动恢复,大多数时候要手动重启一下openclash,不知道是内核问题还是什么问题。

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days