Application crash after changing dns server in settings to local (127.0.0.1)

#81 · closed · 4 comments

View on GitHub ↗

paratroop3r

Hello! For organization of DNS hijacking I want to make routing [dns-in] >> [dns-out] outbound, where [dns-in] is internal dns server of x-ray. ` { "listen": "127.0.0.1", "port": 10853, "protocol": "dokodemo-door", "settings": { "address": "1.1.1.1", "network": "tcp,udp", "port": 53 }, "tag": "dns-in" }` So I'm going to app settings and replace default 1.1.1.1 to 127.0.0.1 and default ipv6 for cloudflare to ::1. After that application is crashing when I'm trying to start VPN. Same dns hijacking logic is realized in v2rayng.

Comments

SaeedDev94

You can't set the tun dns address in settings to `127.0.0.1` In the routing rules add [port 53] >> [proxy]

SaeedDev94

Also for the best experience use "Transparent Proxy" (requires root access)

paratroop3r

> You can't set the tun dns address in settings to `127.0.0.1` In the routing rules add [port 53] >> [proxy] Guess you mean [dns-out] instead of [proxy], because I need to use internal x-ray dns server (doh is configured in my config). ``` { "inboundTag": [ "socks" ], "port": "53", "outboundTag": "dns-out" }, ```

SaeedDev94

TMK xray dns server won't work without root access That's why I suggest TPROXY to you