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

dns 设置中配置了 host,但不生效 #5093

Closed
qazwsdc opened this issue May 12, 2024 · 3 comments
Closed

dns 设置中配置了 host,但不生效 #5093

qazwsdc opened this issue May 12, 2024 · 3 comments

Comments

@qazwsdc
Copy link

qazwsdc commented May 12, 2024

比如
{
"hosts": {
"google.com": "127.0.0.1",

此时访问谷歌,依然会自动解析域名
访问的确实是 google.com,不带 www

@2dust
Copy link
Owner

2dust commented May 13, 2024

查看下guiConfigs\config.json文件中的dns是否有你设置的值

@qazwsdc
Copy link
Author

qazwsdc commented May 13, 2024

查看下guiConfigs\config.json文件中的dns是否有你设置的值

是有的。
设置的域名是走代理的,不管我设置成什么ip都没用
{
"hosts": {
"xxxx.com": "8.9.8.9"
},
"servers": [
{
"address": "223.5.5.5",
"domains": [
"geosite:cn",
"geosite:geolocation-cn"
],
"expectIPs": [
"geoip:cn"
]
},
"1.1.1.1",
"8.8.8.8",
"https://dns.google/dns-query"
]
}

@2dust
Copy link
Owner

2dust commented May 14, 2024

这种情况,你可以提交issue到xray-core,发完整配置和日志

@2dust 2dust closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
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