We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.12.0-α13
predefined
Android
10
sing-box for Android 图形客户端程序
1.12.0-alpha13
源码似乎并没处理predefined?
sing-box/dns/transport/hosts/hosts.go
Lines 28 to 65 in 0970bbc
singbox文档中对应的部分dns.hosts_server.predefined
启用配置后,浏览器访问pan.baidu.com,访问失败
{ "log": { "disabled": false, "output": "g.log", "level": "debug", "timestamp": true }, "dns": { "servers": [ { "tag": "dns_alidns_doh_ip", "type": "https", "server": "223.5.5.5", "server_port": 443, "detour": "direct-out" }, { "tag": "my_host", "type": "hosts", "predefined": { "pan.baidu.com": "36.110.192.103" } } ], "rules": [ { "query_type": [ "HTTPS", "AAAA" ], "action": "reject" }, { "domain": "pan.baidu.com", "server": "my_host" } ], "final": "dns_alidns_doh_ip", "strategy": "ipv4_only" }, "inbounds": [ { "type": "tun", "tag": "tun-in", "address": [ "172.19.0.1/30", "fdfe:dcba:9876::1/126" ], "auto_route": true, "strict_route": true, "route_address": [ "0.0.0.0/1", "128.0.0.0/1", "::/1", "8000::/1" ] } ], "route": { "rules": [ { "port": 53, "action": "hijack-dns" } ], "final": "direct-out", "auto_detect_interface": true, "default_domain_resolver": { "server": "dns_alidns_doh_ip" } }, "outbounds": [ { "tag": "direct-out", "type": "direct" } ] }
` +0800 2025-02-28 16:46:04 INFO [3204139697 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:41065 +0800 2025-02-28 16:46:04 INFO [3204139697 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53 +0800 2025-02-28 16:46:04 DEBUG [3204139697 0ms] router: match[0] port=53 => hijack-dns +0800 2025-02-28 16:46:04 DEBUG [3204139697 1ms] dns: exchange pan.baidu.com. IN A +0800 2025-02-28 16:46:04 DEBUG [3204139697 1ms] dns: match[3] domain=pan.baidu.com => route(my_host) +0800 2025-02-28 16:46:04 DEBUG [3204139697 1ms] dns: exchanged pan.baidu.com NXDOMAIN 0 //找不到域名 +0800 2025-02-28 16:46:04 INFO [1525010190 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:8372 +0800 2025-02-28 16:46:04 INFO [1525010190 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53 +0800 2025-02-28 16:46:04 DEBUG [1525010190 0ms] router: match[0] port=53 => hijack-dns +0800 2025-02-28 16:46:04 DEBUG [1525010190 0ms] dns: exchange pan.baidu.com. IN HTTPS +0800 2025-02-28 16:46:04 DEBUG [1525010190 0ms] dns: match[1] query_type=[HTTPS AAAA] => reject +0800 2025-02-28 16:46:04 INFO [2812618252 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:56284 +0800 2025-02-28 16:46:04 INFO [2812618252 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53 +0800 2025-02-28 16:46:04 DEBUG [2812618252 0ms] router: match[0] port=53 => hijack-dns +0800 2025-02-28 16:46:04 DEBUG [2812618252 0ms] dns: exchange pan.baidu.com. IN AAAA +0800 2025-02-28 16:46:04 DEBUG [2812618252 0ms] dns: match[1] query_type=[HTTPS AAAA] => reject +0800 2025-02-28 16:46:04 INFO [4202478433 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:18030 +0800 2025-02-28 16:46:04 INFO [4202478433 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53 +0800 2025-02-28 16:46:04 DEBUG [4202478433 0ms] router: match[0] port=53 => hijack-dns +0800 2025-02-28 16:46:04 DEBUG [4202478433 0ms] dns: exchange pan.baidu.com. IN A +0800 2025-02-28 16:46:04 DEBUG [4202478433 0ms] dns: match[3] domain=pan.baidu.com => route(my_host) +0800 2025-02-28 16:46:04 DEBUG [4202478433 1ms] dns: exchanged pan.baidu.com NXDOMAIN 0 //找不到域名 +0800 2025-02-28 16:46:04 INFO [1401356791 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:48947 +0800 2025-02-28 16:46:04 INFO [1401356791 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53 +0800 2025-02-28 16:46:04 DEBUG [1401356791 0ms] router: match[0] port=53 => hijack-dns +0800 2025-02-28 16:46:04 INFO [3098572367 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:2670 +0800 2025-02-28 16:46:04 DEBUG [1401356791 0ms] dns: exchange pan.baidu.com. IN AAAA +0800 2025-02-28 16:46:04 DEBUG [1401356791 1ms] dns: match[1] query_type=[HTTPS AAAA] => reject +0800 2025-02-28 16:46:04 INFO [3433453450 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:59747 +0800 2025-02-28 16:46:04 INFO [3433453450 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53 +0800 2025-02-28 16:46:04 DEBUG [3433453450 0ms] router: match[0] port=53 => hijack-dns +0800 2025-02-28 16:46:04 DEBUG [3433453450 0ms] dns: exchange pan.baidu.com. IN HTTPS +0800 2025-02-28 16:46:04 DEBUG [3433453450 0ms] dns: match[1] query_type=[HTTPS AAAA] => reject +0800 2025-02-28 16:46:04 INFO [3098572367 1ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53 +0800 2025-02-28 16:46:04 DEBUG [3098572367 2ms] router: match[0] port=53 => hijack-dns `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
操作系统
Android
系统版本
10
安装类型
sing-box for Android 图形客户端程序
如果您使用图形客户端程序,请提供该程序版本。
1.12.0-alpha13
版本
描述
源码似乎并没处理
predefined
?sing-box/dns/transport/hosts/hosts.go
Lines 28 to 65 in 0970bbc
singbox文档中对应的部分dns.hosts_server.predefined
重现方式
启用配置后,浏览器访问pan.baidu.com,访问失败
日志
支持我们
完整性要求
The text was updated successfully, but these errors were encountered: