Skip to content
New issue

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

Android DNSrules 1层 DNSserver 配置问题 #2081

Closed
4 of 5 tasks
solanab opened this issue Sep 2, 2024 · 5 comments
Closed
4 of 5 tasks

Android DNSrules 1层 DNSserver 配置问题 #2081

solanab opened this issue Sep 2, 2024 · 5 comments

Comments

@solanab
Copy link

solanab commented Sep 2, 2024

操作系统

Android

系统版本

Android 12 (MIUI 14.0.5)

安装类型

sing-box for Android 图形客户端程序

如果您使用图形客户端程序,请提供该程序版本。

1.9.4

版本

No response

描述

问题是无法访问常用网站

Android 手机如果使用中国移动流量,不会出现本问题
如果使用 Wlan ,1层DNS server 设置为 Wlan分配的DNS服务器,不会出现本问题
如果使用 Wlan ,1层DNS server 设置为 组播DNS服务器,会出现本问题

重现方式

Android sing-box
WLan

DNS配置1,可正常联网
211.82.112.111 为mac在同Wi-Fi下 Wi-Fi详情里的一个DNS服务器

	"dns": {
		"servers": [
			{
				"tag": "default-dns",
				"address": "211.82.112.111",
				"detour": "direct-out"
			},
			{
				"tag": "ali",
				"address": "https://dns.alidns.com/dns-query",
				"address_resolver": "default-dns"
			},
			{
				"tag": "google",
				"address": "https://dns.google/dns-query",
				"address_resolver": "ali",
				"client_subnet": "218.107.132.66"
			}
		],
		"rules": [
			{
				"outbound": "any",
				"server": "default-dns"
			},
			{
				"rule_set": "cnsite",
				"server": "ali"
			},
			{
				"clash_mode": "direct",
				"server": "ali"
			},
			{
				"clash_mode": "global",
				"server": "google"
			}
		],
		"disable_cache": false,
		"disable_expire": false,
		"independent_cache": false,
		"strategy": "ipv4_only",
		"final": "google"
	},

DNS配置2,无法正常联网

	"dns": {
		"servers": [
			{
				"tag": "ali",
				"address": "223.5.5.5",
				"detour": "direct-out"
			},
			{
				"tag": "google",
				"address": "https://dns.google/dns-query",
				"address_resolver": "ali",
				"client_subnet": "218.107.132.66"
			}
		],
		"rules": [
			{
				"outbound": "any",
				"server": "ali"
			},
			{
				"rule_set": "cnsite",
				"server": "ali"
			},
			{
				"clash_mode": "direct",
				"server": "ali"
			},
			{
				"clash_mode": "global",
				"server": "google"
			}
		],
		"disable_cache": false,
		"disable_expire": false,
		"independent_cache": false,
		"strategy": "ipv4_only",
		"final": "google"
	},

日志

No response

支持我们

完整性要求

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
@solanab
Copy link
Author

solanab commented Sep 6, 2024

找到原因了,校园网的问题。

校园网把国内网站屏蔽了,但没屏蔽ss和DNS。。

@solanab solanab closed this as completed Sep 6, 2024
@FBI-dev
Copy link

FBI-dev commented Sep 24, 2024

那要怎么解决啊,我也有同样的问题😂

@solanab
Copy link
Author

solanab commented Sep 28, 2024

那要怎么解决啊,我也有同样的问题😂

我的可能是因校园网防火墙设置过严 导致无法启动Android客户端。。

先在原来的国内的DNS server 223.5.5.5 前面 加一层局域网DNS server 211.82.112.111

局域网DNS server 地址是WLan详情里查到的,你的可能不同

然后在确认geo文件正常的前提下,一直点连接快10次,然后不报错启动了。

@solanab
Copy link
Author

solanab commented Oct 7, 2024

如遇到WLan下载rulset,重连10次扔报错的情况,可尝试以下步骤

  1. 用DNS配置1 与WLan相同的ruleset 连接手机数据,下载ruleset
  2. 用DNS配置2连WLan,报错再尝试3-5次

@FBI-dev
Copy link

FBI-dev commented Oct 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants