This snippet illustrates how to specify DNS servers in a V2Ray configuration.
Using old or congested server addresses can lead to timeouts. v2ray slow dns server
If you are troubleshooting this, the solution is rarely to change the DNS IP (e.g., switching from Google to Cloudflare), but to change v2ray queries it (e.g., forcing DNS through the proxy tunnel or using DoH). This snippet illustrates how to specify DNS servers
"address": "https://1.1.1.1/dns-query", "domains": ["geosite:geolocation-!cn"], "expectIPs": ["geoip:!cn"], "skipFallback": false , switching from Google to Cloudflare)
Troubleshooting V2Ray: Why Your DNS Server Is Slowing You Down