Replies: 4 comments 4 replies
-
Do you mean that your DNS requests does not work at all? The built-in DNS module of v2ray functions as an inbound, necessitating the allocation of a tag and the routing of its traffic unto an appropriate outbound; failure to do so would result in the diversion of said traffic into the default outbound, namely “dflt” in your case. Or, do you mean that the domain name of your v2ray server is usable in the configuration of the v2ray client? V2ray does not conveniently proxy all DNS requests originating from your OS, unless you explicitly setup a DNS inbound and adjust your OS to utilize it. Additionally, proxying DNS request regarding your v2ray server’s domain name are discouraged, as the inevitable “chicken or egg” conundrum may arise; rather, you should locally resolve the domain names of your servers. If my interpretation proves to be inaccurate, can you give more context? |
Beta Was this translation helpful? Give feedback.
-
In fact, you don't need to set dns in the server configuration file. {
"log": {
"loglevel": "error",
"access": "/etc/v2fly/logs/access.log",
"error": "/etc/v2fly/logs/error.log"
},
"inbounds": [
{
"port": 5555,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "xxxx",
"level": 0,
"email": "xxxx"
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/api"
}
}
}
],
"outbounds": [
{ "protocol": "freedom", "tag": "freedom" },
{
"protocol": "socks",
"tag": "socks-out",
"settings": {
"servers": [
{
"address": "socks-out",
"port": 9091
}
]
}
}
],
"routing": {
"rules": [
{
"type": "field",
"domain": ["domain:ai.com", "domain:openai.com", "domain:ip.gs"],
"outboundTag": "socks-out"
},
{
"type": "field",
"network": "tcp,udp",
"outboundTag": "freedom"
}
]
}
} My server does not allow access to openai, I use cloudflare's warp, |
Beta Was this translation helpful? Give feedback.
-
Hey there I'm currently struggling with the exact same thing did you find any solution? thank you in advance |
Beta Was this translation helpful? Give feedback.
-
Hey there I'm currently struggling with the exact same thing did you find any solution? thank you in advance |
Beta Was this translation helpful? Give feedback.
-
Hello, I am looking to use v2ray-core as a bridge. Currently, I have a socks5 proxy set up on my localhost and I want v2ray to proxy all requests to that proxy. In essence, I want the following setup: client => vmess => socks5 => destination.
I have created a configuration that achieves this, but unfortunately, DNS requests are not functioning properly. As a result, I can only connect to servers using their IP addresses. I was hoping someone could provide some guidance on what steps I should take to resolve this issue. Thank you.
Here is my server v2ray configuration:
Beta Was this translation helpful? Give feedback.
All reactions