Remote dns doesn't work well

I have server with shadowsocks-libev as ss-server on my own server.

Also on this server installed Dnsmasq with fake dns-record address=/my.cloud/127.0.0.1: this record resolved only when dns-requests send through SS.

On Linux my.cloud resolves well. But on android I can’t rich my host.

I tried set localhost and 127.0.0.1 as Remote DNS in client: no results.

As far as I know, shadowsocks-android doesn’t use the default DNS of your server, it uses dns.google (by default) instead. You may try to edit DNS server field in the config of shadowsocks-android.

If you want to enforce this DNS configuration to all clients, you may set iptables to redirect outgoing UDP 53 packets sent by ss-server (can be distinguished by uid-owner) to your local dnsmasq.

I tried to edit DNS-server in ss-server and android: doesn’t work.

I will try with iptables. Thank you!

You can use 0.0.0.0 for own dns.