sing-box
sing-box copied to clipboard
dns.server为local的时候解析超时的问题
Operating system
Linux
System version
RouterOS
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
No response
Version
sing-box version 1.10.0-alpha.29-067c81a7
Environment: go1.23.0 linux/arm64
Tags: with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_acme,with_reality_server,with_clash_api,with_gvisor
Revision: 067c81a73e1fb7b6edbc58e6b06b8b943fa6c40a
CGO: disabled
Description
用系统DNS ("address": "local") 的时候,纯v4者v6记录的网站,用nslookup查询解析,会稳定超时,v4v6双栈的就会正常返回解析
PS C:\Users\yuban> nslookup.exe speed.neu6.edu.cn 10.1.1.253
DNS request timed out.
timeout was 2 seconds.
服务器: UnKnown
Address: 10.1.1.253
DNS request timed out.
timeout was 2 seconds.
名称: speed.neu6.edu.cn
Address: 2001:da8:9000::66
PS C:\Users\yuban> nslookup.exe speed4.neu6.edu.cn 10.1.1.253
DNS request timed out.
timeout was 2 seconds.
服务器: UnKnown
Address: 10.1.1.253
非权威应答:
DNS request timed out.
timeout was 2 seconds.
名称: speed4.neu6.edu.cn
Address: 202.118.1.66
填公共DNS ("address": "223.5.5.5") 就一切正常,纯v4,纯v6,双栈都能正常返回解析
PS C:\Users\yuban> nslookup.exe speed.neu6.edu.cn 10.1.1.253
服务器: UnKnown
Address: 10.1.1.253
名称: speed.neu6.edu.cn
Address: 2001:da8:9000::66
PS C:\Users\yuban> nslookup.exe speed4.neu6.edu.cn 10.1.1.253
服务器: UnKnown
Address: 10.1.1.253
非权威应答:
名称: speed4.neu6.edu.cn
Address: 202.118.1.66
是我配置的有问题么,singbox是运行在RouterOS的container里的, 在container中nslookup使用系统dns是能正常返回解析,不会超时
Reproduction
这是简化后的配置:
{
"log": {
"disabled": false,
"level": "debug",
"timestamp": true,
"output": "singbox.log"
},
"dns": {
"servers": [
{
"tag": "dns_local",
"address": "local",
"detour": "DIRECT"
}
],
"rules": [
{
"query_type": [
"A",
"AAAA"
],
"server": "dns_local"
}
],
"final": "dns_local",
"disable_cache": true,
"disable_expire": false,
"independent_cache": false
},
"inbounds": [
{
"type": "direct",
"tag": "dns-in",
"listen": "0.0.0.0",
"listen_port": 53
}
],
"outbounds": [
{
"tag": "DIRECT",
"type": "direct"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"tag": "REJECT",
"type": "block"
}
],
"outbound_providers": [
{
"tag": "🛫 1",
"type": "remote",
"download_url": "https://www.1111.xyz/zcjqev1?token=111",
"path": "./1.yaml",
"download_interval": "24h",
"download_ua": "clash.meta",
"includes": [],
"healthcheck_url": "http://www.google-analytics.com/generate_204",
"healthcheck_interval": "10m"
}
],
"route": {
"rules": [
{
"protocol": [
"quic"
],
"outbound": "REJECT"
},
{
"inbound": "dns-in",
"outbound": "dns-out"
},
{
"protocol": "dns",
"outbound": "dns-out"
}
],
"auto_detect_interface": true
},
"experimental": {
"cache_file": {
"enabled": true
},
"clash_api": {
"external_controller": "0.0.0.0:9090",
"secret": "",
"default_mode": "Rule"
}
}
}
这是完整配置
{
"log": {
"disabled": false,
"level": "debug",
"timestamp": true,
"output": "singbox.log"
},
"dns": {
"servers": [
{
"tag": "dns_local",
"address": "local",
"detour": "DIRECT"
},
{
"tag": "dns_proxy",
"address": [
"https://8.8.8.8/dns-query"
],
"strategy": "ipv4_only",
"detour": "🍕 DNS节点"
}
],
"rules": [
{
"outbound": "any",
"server": "dns_local",
"disable_cache": true
},
{
"clash_mode": "Direct",
"server": "dns_local"
},
{
"clash_mode": "Global",
"server": "dns_proxy"
},
{
"rule_set": [
"proxy"
],
"server": "dns_proxy"
},
{
"rule_set": [
"cn"
],
"server": "dns_local"
}
],
"final": "dns_proxy",
"disable_cache": true,
"disable_expire": false,
"independent_cache": false
},
"inbounds": [
{
"type": "direct",
"tag": "dns-in",
"listen": "0.0.0.0",
"listen_port": 53
},
{
"tag": "tun-in",
"type": "tun",
"interface_name": "tun0",
"address": [
"172.19.0.1/30",
"fdfe:dcba:9876::1/126"
],
"mtu": 9000,
"gso": true,
"stack": "system",
"auto_route": true,
"sniff": true,
"sniff_override_destination": true
},
{
"type": "http",
"tag": "http-in",
"listen": "::",
"listen_port": 1070,
"tcp_fast_open": true,
"sniff": true,
"sniff_override_destination": true,
"users": [
{
"username": "11111",
"password": "111111.xyz"
}
],
"tls": {},
"set_system_proxy": false
},
{
"type": "vmess",
"tag": "ws_server",
"listen": "::",
"listen_port": 8443,
"tcp_fast_open": true,
"udp_fragment": true,
"udp_timeout": "300s",
"sniff": true,
"sniff_override_destination": true,
"users": [
{
"name": "cfg-ws-server",
"uuid": "11111f60-0427-40a9-1111-1111d505d2fa"
}
],
"multiplex": {
"enabled": true,
"padding": true
},
"transport": {
"type": "ws",
"path": "/",
"max_early_data": 2048,
"early_data_header_name": "Sec-WebSocket-Protocol"
}
}
],
"outbounds": [
{
"tag": "REJECT",
"type": "block"
},
{
"tag": "DIRECT",
"type": "direct"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"tag": "🔰 节点选择",
"type": "selector",
"outbounds": [
"♻️ 自动选择",
"🇭🇰 香港自动",
"🇨🇳 台湾自动",
"🇯🇵 日本自动",
"🇰🇷 韩国自动",
"🇸🇬 狮城自动",
"🇺🇸 美国自动",
"🌀 手动切换",
"🎯 全球直连"
]
},
{
"tag": "🌀 手动切换",
"type": "selector",
"use_all_providers": true,
"includes": [
"🇭🇰|香港|HK|HONGKONG|HongKong|🇨🇳|台湾|TW|TAIWAN|Taiwan|🇯🇵|日本|JP|JAPAN|Japan|🇸🇬|新加坡|SG|SINGAPORE|Singapore|🇺🇸|美国|US|UNITED STATES|United States"
],
"outbounds": [
"my_us"
]
},
{
"tag": "🍕 DNS节点",
"type": "selector",
"use_all_providers": true,
"includes": [
"🇭🇰|香港|HK|HONGKONG|HongKong|🇨🇳|台湾|TW|TAIWAN|Taiwan|🇯🇵|日本|JP|JAPAN|Japan|🇸🇬|新加坡|SG|SINGAPORE|Singapore|🇺🇸|美国|US|UNITED STATES|United States"
]
},
{
"tag": "♻️ 自动选择",
"type": "urltest",
"url": "http://www.google-analytics.com/generate_204",
"tolerance": 50,
"outbounds": [
"🇭🇰 香港自动",
"🇨🇳 台湾自动",
"🇯🇵 日本自动",
"🇰🇷 韩国自动",
"🇸🇬 狮城自动",
"🇺🇸 美国自动"
]
},
{
"tag": "🤖 人工智能",
"type": "selector",
"outbounds": [
"🇭🇰 香港自动",
"🇨🇳 台湾自动",
"🇯🇵 日本自动",
"🇰🇷 韩国自动",
"🇸🇬 狮城自动",
"🇺🇸 美国自动"
]
},
{
"tag": "🎮 游戏服务",
"type": "selector",
"outbounds": [
"🎯 全球直连",
"🔰 节点选择"
]
},
{
"tag": "🪟 微软服务",
"type": "selector",
"outbounds": [
"🎯 全球直连",
"🔰 节点选择"
]
},
{
"tag": "🇬 谷歌服务",
"type": "selector",
"outbounds": [
"🎯 全球直连",
"🔰 节点选择"
]
},
{
"tag": "🍎 苹果服务",
"type": "selector",
"outbounds": [
"🎯 全球直连",
"🔰 节点选择"
]
},
{
"tag": "🇨🇳 直连域名",
"type": "selector",
"outbounds": [
"🎯 全球直连"
]
},
{
"tag": "🇨🇳 直连 IP",
"type": "selector",
"outbounds": [
"🎯 全球直连"
]
},
{
"tag": "🪜 代理域名",
"type": "selector",
"outbounds": [
"🔰 节点选择",
"🎯 全球直连"
]
},
{
"tag": "📲 电报消息",
"type": "selector",
"outbounds": [
"🔰 节点选择",
"🇭🇰 香港自动",
"🇨🇳 台湾自动",
"🇯🇵 日本自动",
"🇰🇷 韩国自动",
"🇸🇬 狮城自动",
"🇺🇸 美国自动"
]
},
{
"tag": "🦌 ehentai",
"type": "selector",
"outbounds": [
"🔰 节点选择",
"🇭🇰 香港自动",
"🇨🇳 台湾自动",
"🇯🇵 日本自动",
"🇰🇷 韩国自动",
"🇸🇬 狮城自动",
"🇺🇸 美国自动"
]
},
{
"tag": "📑 mongodb",
"type": "selector",
"outbounds": [
"🔰 节点选择",
"🇭🇰 香港自动",
"🇨🇳 台湾自动",
"🇯🇵 日本自动",
"🇰🇷 韩国自动",
"🇸🇬 狮城自动",
"🇺🇸 美国自动"
]
},
{
"tag": "🔒 私有网络",
"type": "selector",
"outbounds": [
"🎯 全球直连"
]
},
{
"tag": "🛑 广告拦截",
"type": "selector",
"outbounds": [
"REJECT"
]
},
{
"tag": "🎯 全球直连",
"type": "selector",
"outbounds": [
"DIRECT"
]
},
{
"tag": "GLOBAL",
"type": "selector",
"outbounds": [
"DIRECT",
"REJECT",
"🇭🇰 香港自动",
"🇨🇳 台湾自动",
"🇯🇵 日本自动",
"🇰🇷 韩国自动",
"🇸🇬 狮城自动",
"🇺🇸 美国自动"
]
},
{
"tag": "🐟 漏网之鱼",
"type": "selector",
"outbounds": [
"🔰 节点选择",
"🎯 全球直连"
]
},
{
"tag": "🇭🇰 香港自动",
"type": "urltest",
"url": "http://www.google-analytics.com/generate_204",
"tolerance": 50,
"use_all_providers": true,
"includes": [
"🇭🇰|香港|HK|HONGKONG|HongKong"
]
},
{
"tag": "🇨🇳 台湾自动",
"type": "urltest",
"url": "http://www.google-analytics.com/generate_204",
"tolerance": 50,
"use_all_providers": true,
"includes": [
"🇨🇳|台湾|TW|TAIWAN|Taiwan"
]
},
{
"tag": "🇯🇵 日本自动",
"type": "urltest",
"url": "http://www.google-analytics.com/generate_204",
"tolerance": 50,
"use_all_providers": true,
"includes": [
"🇯🇵|日本|JP|JAPAN|Japan"
]
},
{
"tag": "🇰🇷 韩国自动",
"type": "urltest",
"url": "http://www.google-analytics.com/generate_204",
"tolerance": 50,
"use_all_providers": true,
"includes": [
"🇰🇷|韩国|KR|KOREA|Korea"
]
},
{
"tag": "🇸🇬 狮城自动",
"type": "urltest",
"url": "http://www.google-analytics.com/generate_204",
"tolerance": 50,
"use_all_providers": true,
"includes": [
"🇸🇬|新加坡|SG|SINGAPORE|Singapore"
]
},
{
"tag": "🇺🇸 美国自动",
"type": "urltest",
"url": "http://www.google-analytics.com/generate_204",
"tolerance": 50,
"use_all_providers": true,
"includes": [
"🇺🇸|美国|US|UNITED STATES|United States"
]
},
{
"tag": "my_us",
"type": "hysteria2",
"server": "11.11.11.11",
"server_port": 443,
"password": "1111",
"tls": {
"enabled": true,
"server_name": "1111.1111.1111",
"insecure": true
},
"tcp_fast_open": true,
"udp_fragment": true
}
],
"outbound_providers": [
{
"tag": "🛫 1",
"type": "remote",
"download_url": "https://www.1111.xyz/zcjqev1?token=1111111",
"path": "./1.yaml",
"download_interval": "24h",
"download_ua": "clash.meta",
"includes": [],
"healthcheck_url": "http://www.google-analytics.com/generate_204",
"healthcheck_interval": "10m"
}
],
"route": {
"rules": [
{
"protocol": [
"quic"
],
"outbound": "REJECT"
},
{
"inbound": "dns-in",
"outbound": "dns-out"
},
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"inbound": "ws_server",
"outbound": "DIRECT"
},
{
"inbound": "http-in",
"outbound": "🌀 手动切换"
},
{
"clash_mode": "Direct",
"outbound": "DIRECT"
},
{
"clash_mode": "Global",
"outbound": "GLOBAL"
},
{
"domain_suffix": [
"linux.do",
"ajay.app",
"returnyoutubedislikeapi.com"
],
"outbound": "🪜 代理域名"
},
{
"domain_suffix": [
"oaifree.com",
"guangbomi.com",
"bootcss.com",
"bilibili.com"
],
"outbound": "🇨🇳 直连域名"
},
{
"domain_suffix": [
"mongodb.net"
],
"outbound": "📑 mongodb"
},
{
"rule_set": [
"private"
],
"outbound": "🔒 私有网络"
},
{
"rule_set": [
"microsoft-cn"
],
"outbound": "🪟 微软服务"
},
{
"rule_set": [
"apple-cn"
],
"outbound": "🍎 苹果服务"
},
{
"rule_set": [
"google-cn"
],
"outbound": "🇬 谷歌服务"
},
{
"rule_set": [
"games-cn"
],
"outbound": "🎮 游戏服务"
},
{
"rule_set": [
"ai"
],
"outbound": "🤖 人工智能"
},
{
"rule_set": [
"ehentai"
],
"outbound": "🦌 ehentai"
},
{
"rule_set": [
"proxy"
],
"outbound": "🪜 代理域名"
},
{
"rule_set": [
"cn"
],
"outbound": "🇨🇳 直连域名"
},
{
"rule_set": [
"telegramip"
],
"outbound": "📲 电报消息",
"skip_resolve": true
},
{
"rule_set": [
"privateip"
],
"outbound": "🔒 私有网络",
"skip_resolve": true
},
{
"rule_set": [
"cnip"
],
"outbound": "🇨🇳 直连 IP"
}
],
"rule_set": [
{
"tag": "private",
"type": "remote",
"format": "binary",
"path": "./private.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/private.srs"
},
{
"tag": "microsoft-cn",
"type": "remote",
"format": "binary",
"path": "./microsoft-cn.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/microsoft-cn.srs"
},
{
"tag": "apple-cn",
"type": "remote",
"format": "binary",
"path": "./apple-cn.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/apple-cn.srs"
},
{
"tag": "google-cn",
"type": "remote",
"format": "binary",
"path": "./google-cn.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/google-cn.srs"
},
{
"tag": "games-cn",
"type": "remote",
"format": "binary",
"path": "./games-cn.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/games-cn.srs"
},
{
"tag": "ai",
"type": "remote",
"format": "binary",
"path": "./openai.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/ai.srs"
},
{
"tag": "proxy",
"type": "remote",
"format": "binary",
"path": "./proxy.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/proxy.srs"
},
{
"tag": "cn",
"type": "remote",
"format": "binary",
"path": "./cn.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/cn.srs"
},
{
"tag": "telegramip",
"type": "remote",
"format": "binary",
"path": "./telegramip.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/telegramip.srs"
},
{
"tag": "ehentai",
"type": "remote",
"format": "binary",
"path": "./ehentai.srs",
"url": "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/ehentai.srs"
},
{
"tag": "privateip",
"type": "remote",
"format": "binary",
"path": "./privateip.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/privateip.srs"
},
{
"tag": "cnip",
"type": "remote",
"format": "binary",
"path": "./cnip.srs",
"download_detour": "my_us",
"url": "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/cnip.srs"
}
],
"final": "🐟 漏网之鱼",
"auto_detect_interface": true
},
"experimental": {
"cache_file": {
"enabled": true
},
"clash_api": {
"external_controller": "0.0.0.0:9090",
"secret": "",
"default_mode": "Rule"
}
}
}
Logs
填公共DNS ("address": "223.5.5.5") 的时候
+0000 2024-09-30 20:22:26 INFO [2617754112 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:54450
+0000 2024-09-30 20:22:26 DEBUG [2617754112 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-09-30 20:22:26 DEBUG [2617754112 0ms] dns: exchange 253.1.1.10.in-addr.arpa. IN PTR
+0000 2024-09-30 20:22:26 DEBUG [2617754112 9ms] dns: exchanged 253.1.1.10.in-addr.arpa NXDOMAIN 600
+0000 2024-09-30 20:22:26 INFO [2617754112 9ms] dns: exchanged 253.1.1.10.in-addr.arpa SOA 10.in-addr.arpa. 600 IN SOA 10.in-addr.arpa. . 0 28800 7200 604800 86400
+0000 2024-09-30 20:22:26 INFO [313652658 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:54451
+0000 2024-09-30 20:22:26 DEBUG [313652658 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-09-30 20:22:26 DEBUG [313652658 0ms] dns: exchange speed4.neu6.edu.cn. IN A
+0000 2024-09-30 20:22:26 DEBUG [313652658 0ms] dns: match[0] query_type=[A AAAA] => dns_local
+0000 2024-09-30 20:22:26 DEBUG [313652658 7ms] dns: exchanged speed4.neu6.edu.cn NOERROR 1344
+0000 2024-09-30 20:22:26 INFO [313652658 7ms] dns: exchanged speed4.neu6.edu.cn A speed4.neu6.edu.cn. 1344 IN A 202.118.1.66
+0000 2024-09-30 20:22:26 INFO [171597478 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:54452
+0000 2024-09-30 20:22:26 DEBUG [171597478 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-09-30 20:22:26 DEBUG [171597478 0ms] dns: exchange speed4.neu6.edu.cn. IN AAAA
+0000 2024-09-30 20:22:26 DEBUG [171597478 1ms] dns: match[0] query_type=[A AAAA] => dns_local
+0000 2024-09-30 20:22:26 DEBUG [171597478 8ms] dns: exchanged speed4.neu6.edu.cn NOERROR 1344
+0000 2024-09-30 20:22:26 INFO [171597478 8ms] dns: exchanged speed4.neu6.edu.cn SOA neu6.edu.cn. 1344 IN SOA ns.neu.edu.cn. wzk.mail.neu.edu.cn. 2024061216 28800 7200 1209600 86400
用系统DNS ("address": "local") 的时候
+0000 2024-09-30 20:25:12 INFO [323592379 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:54447
+0000 2024-09-30 20:25:12 DEBUG [323592379 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-09-30 20:25:12 DEBUG [323592379 1ms] dns: exchange 253.1.1.10.in-addr.arpa. IN PTR
+0000 2024-09-30 20:25:12 ERROR [323592379 2ms] dns: exchange failed for 253.1.1.10.in-addr.arpa. IN PTR: no raw query support by current transport
+0000 2024-09-30 20:25:12 ERROR [1647579585 2ms] inbound/direct[dns-in]: no raw query support by current transport
+0000 2024-09-30 20:25:14 INFO [2365284449 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:50250
+0000 2024-09-30 20:25:14 DEBUG [2365284449 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-09-30 20:25:14 DEBUG [2365284449 1ms] dns: exchange speed4.neu6.edu.cn. IN A
+0000 2024-09-30 20:25:14 DEBUG [2365284449 1ms] dns: match[0] query_type=[A AAAA] => dns_local
+0000 2024-09-30 20:25:14 INFO [2365284449 2ms] outbound/direct[DIRECT]: outbound packet connection to 10.1.1.1:53
+0000 2024-09-30 20:25:14 INFO [3071541248 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:50251
+0000 2024-09-30 20:25:14 DEBUG [3071541248 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-09-30 20:25:14 DEBUG [3071541248 0ms] dns: exchange speed4.neu6.edu.cn. IN AAAA
+0000 2024-09-30 20:25:14 DEBUG [3071541248 0ms] dns: match[0] query_type=[A AAAA] => dns_local
+0000 2024-09-30 20:25:14 INFO [3071541248 1ms] outbound/direct[DIRECT]: outbound packet connection to 10.1.1.1:53
+0000 2024-09-30 20:25:14 INFO [3071541248 34ms] outbound/direct[DIRECT]: outbound packet connection to 10.1.1.1:53
+0000 2024-09-30 20:25:14 ERROR [3071541248 36ms] dns: exchange failed for speed4.neu6.edu.cn. IN AAAA: name error
+0000 2024-09-30 20:25:14 ERROR [2505695972 36ms] inbound/direct[dns-in]: name error
Supporter
- [ ] I am a sponsor
Integrity requirements
- [X] I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
- [X] I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
- [X] I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
- [X] I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
手动设置成本机DNS就正常了...
还是有问题,双栈的域名有时候会只返回IPV4的结果
相关日志
+0000 2024-10-08 10:40:04 INFO [2941497020 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:54210
+0000 2024-10-08 10:40:04 DEBUG [2941497020 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-10-08 10:40:04 DEBUG [2941497020 1ms] dns: exchange 254.1.1.10.in-addr.arpa. IN PTR
+0000 2024-10-08 10:40:04 DEBUG [2941497020 112ms] dns: exchanged 254.1.1.10.in-addr.arpa NXDOMAIN 0
+0000 2024-10-08 10:40:04 INFO [3189418443 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:54211
+0000 2024-10-08 10:40:04 DEBUG [3189418443 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-10-08 10:40:04 DEBUG [3189418443 0ms] dns: exchange www.bilibili.com. IN A
+0000 2024-10-08 10:40:04 DEBUG [3189418443 1ms] dns: match[4] query_type=[A AAAA] rule_set=cn => dns_local
+0000 2024-10-08 10:40:04 DEBUG [3189418443 35ms] dns: exchanged www.bilibili.com NOERROR 89
+0000 2024-10-08 10:40:04 INFO [3189418443 36ms] dns: exchanged www.bilibili.com CNAME www.bilibili.com. 89 IN CNAME a.w.bilicdn1.com.
+0000 2024-10-08 10:40:04 INFO [3189418443 36ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 117.21.179.18
+0000 2024-10-08 10:40:04 INFO [3189418443 36ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 117.21.179.19
+0000 2024-10-08 10:40:04 INFO [3189418443 36ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 114.230.222.141
+0000 2024-10-08 10:40:04 INFO [3189418443 36ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 175.4.62.127
+0000 2024-10-08 10:40:04 INFO [3189418443 36ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 175.4.62.128
+0000 2024-10-08 10:40:04 INFO [3189418443 36ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 175.4.62.129
+0000 2024-10-08 10:40:04 INFO [3189418443 37ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 183.131.147.27
+0000 2024-10-08 10:40:04 INFO [3189418443 37ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 183.131.147.28
+0000 2024-10-08 10:40:04 INFO [3189418443 37ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 183.131.147.29
+0000 2024-10-08 10:40:04 INFO [3189418443 37ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 183.131.147.30
+0000 2024-10-08 10:40:04 INFO [3189418443 37ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 183.131.147.48
+0000 2024-10-08 10:40:04 INFO [3189418443 37ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 60.167.59.23
+0000 2024-10-08 10:40:04 INFO [3189418443 37ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 60.167.59.24
+0000 2024-10-08 10:40:04 INFO [3189418443 38ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 60.167.59.25
+0000 2024-10-08 10:40:04 INFO [3189418443 38ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 60.167.59.28
+0000 2024-10-08 10:40:04 INFO [3189418443 38ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 114.230.222.138
+0000 2024-10-08 10:40:04 INFO [3189418443 38ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 114.230.222.139
+0000 2024-10-08 10:40:04 INFO [3189418443 38ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 114.230.222.140
+0000 2024-10-08 10:40:04 INFO [3189418443 38ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 117.21.179.20
+0000 2024-10-08 10:40:04 INFO [3189418443 38ms] dns: exchanged www.bilibili.com A a.w.bilicdn1.com. 89 IN A 114.230.222.142
+0000 2024-10-08 10:40:04 INFO [1810461889 0ms] inbound/direct[dns-in]: inbound packet connection from 10.1.1.104:54212
+0000 2024-10-08 10:40:04 DEBUG [1810461889 0ms] router: match[1] inbound=dns-in => dns-out
+0000 2024-10-08 10:40:04 DEBUG [1810461889 1ms] dns: exchange www.bilibili.com. IN AAAA
+0000 2024-10-08 10:40:04 DEBUG [1810461889 1ms] dns: match[4] query_type=[A AAAA] rule_set=cn => dns_local
+0000 2024-10-08 10:40:04 ERROR [1810461889 4ms] dns: exchange failed for www.bilibili.com. IN AAAA: context canceled
+0000 2024-10-08 10:40:04 DEBUG [4094964765 4ms] inbound/direct[dns-in]: connection closed: context canceled
在RouterOS的container里 怎用,方便给一下命令吗?
在RouterOS的container里 怎用,方便给一下命令吗?
你打包个docker上传上去,用tun模式,在ros里把非CN的IP分流过去就好了 https://2333.world/RouterOS-SingBox%E5%9B%BD%E5%86%85%E5%A4%96%E5%88%86%E6%B5%81/
手动设置成本机DNS就正常了...
linux 下开启 auto_route 后 sing-box 会主动把 tun dns address 放入 resolve.conf 以方便劫持 dns 流量,在此情况下使用 local 会造成回环,属于正常行为。