zaneschepke / wgtunnel

An alternative Android client app for WireGuard VPN
https://zaneschepke.com/wgtunnel-docs
MIT License
928 stars 47 forks source link

[FEATURE] - Custom DNS entries #447

Closed Eskuero closed 1 week ago

Eskuero commented 1 week ago

I'm not talking about specifying DNS servers for the tunnel but providing custom DNS entries like:

jellyfin.example.com 192.168.1.4 legend.example.com 10.15.16.19

This would make it easier to configure access for local services on the other side of tunnel without having to setup a custom DNS server.

zaneschepke commented 1 week ago

Hello! As far as I am aware, there is no way to do this on android and this is something that would have to be done on your DNS server. You could make this a bit more automated by using search domains on your dns settings for your wireguard config.

I'll mark this as closed for now, but feel free to continue the discussion if you have more to add.

ntova commented 1 week ago

This is (somewhat) possible using Adaway https://f-droid.org/packages/org.adaway/

It lets you define custom /etc/hosts entries. However, it requires root and the entries are always active, not only on VPN.