v2fly / v2ray-core

A platform for building proxies to bypass network restrictions.
https://v2fly.org
MIT License
29.59k stars 4.66k forks source link

Prevent Server ip as dns resolver #1128

Closed fsheidaiee closed 3 years ago

fsheidaiee commented 3 years ago

Hi When testing dns leak, i see the server ip as dns resolver beside my custom dns resolver.(Even if i leave dns section in config blank) Is there anyway to prevent server ip to be as the dns resolver? For example i only want to see cloudflare as dns resolver and nothing else Like clash core. Thanks

kslr commented 3 years ago

try custom DNS

Loyalsoldier commented 3 years ago

Some DNS leakage testings(e.g. https://www.astrill.com/vpn-leak-test ) try to resolve non-existed domains that will lead to resolving SOA record of that domain, which will leak your server IP or local IP.

In this case, a FakeDNS or a full-featured DNS will be your solutions.