2dust / v2rayN

A GUI client for Windows, support Xray core and v2fly core and others

Home Page:https://1.2345345.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

qazwsdc opened this issue · comments

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

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

commented

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

查看下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"
]
}

commented

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