佬们,tun下的dns报错怎么解阿

如下的日志
dns: exchange failed for a.nel.cloudflare.com.
dns: exchange failed for mtalk.google.com. IN A: context canceled
+0800 2024-11-09 13:40:37 ERROR [1385079922 2.27s] dns: exchange failed for linux.do. IN A: context canceled

但是我改了电脑的dns之后,还是报这种错。感觉有点无解了

2 Likes

楼主提供的信息太少,贴一下配置信息会更方便排查

盲猜用的 alidns ,被限制调用了

dns配置用的这个:
{
“servers”: [
{
“tag”: “remote”,
“address”: “8.8.8.8”,
“strategy”: “prefer_ipv4”,
“detour”: “proxy”
},
{
“tag”: “local”,
“address”: “223.5.5.5”,
“strategy”: “prefer_ipv4”,
“detour”: “direct”
},
{
“tag”: “block”,
“address”: “rcode://success”
}
],
“rules”: [
{
“rule_set”: [
“geosite-cn”,
“geosite-geolocation-cn”
],
“server”: “local”
},
{
“rule_set”: [
“geosite-category-ads-all”
],
“server”: “block”
}
],
“final”: “remote”
}
大佬配置信息我该贴哪个呢?

223.5.5.5 换为 1.12.12.12,前面一个是阿里 DNS 有限制,后面一个是腾讯 DNS ,限制少一点

也可以参考如下配置:
https://linux.do/t/topic/244415/20?u=0x000