DNS 打不过去,给了最小配置,帮忙看一下感谢 #2486
Replies: 2 comments 1 reply
-
你改hosts應該就能轉到想要的位址 我的意思是C:硬碟裡面有個hosts,你改這個瀏覽器應該可以訪問,我這邊是測試是可以 |
Beta Was this translation helpful? Give feedback.
-
There is a minor mistake that needs to be corrected. "dns": {
"hosts": {
"domain:local.host": "127.0.0.1"
}
} Otherwise, this configuration shoulld be functional. Without explicitly opening a DNS inbound and configuring your operating system to use it, your custom domain name configured in v2ray may not be recognized by many programs that perform name resolution locally. Note:
|
Beta Was this translation helpful? Give feedback.
-
感觉 v2ray 的 routing、dns 和 outbounds 顺序确实比较迷惑,最后是实现了想要的功能,但是没有经过 v2ray
然后 caddy 反向代理 gitea.my.local 到想要的端口 localhost:port |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
需求:
本地开发的时候在浏览器简单地输入
app.local.host
和app.remote.host
就能连上对应的 app,比如说gitlab.local.host
gitlab.remote.host
现在已经写了一个简单的 Caddyfile,可以把
gitlab.local.localhost
映射到localhost:9000
,浏览器能成功打开有问题的一步在 v2ray 的 DNS 解析这里,一直没办法让
domain:local.host
走到定义的 DNS 规则上,写了一个简单的测试配置,感觉在 DNS 跟 routing 的理解上什么有问题,请大佬们帮忙看一下
测试配置文件例子中
期望的行为:将
local.host
翻译成127.0.0.1
,并且走 out-direct 出去实际的行为:规则没有匹配上,一直选取的默认的 outbound,也就是 out-blocked
测试配置文件:
环境:
Update:
稍微看了一下,我感觉是不是版本 v5 不支持 v4 的配置了?
有没有大佬能把我上面的例子改成 v5 的版本?
Beta Was this translation helpful? Give feedback.
All reactions