Android App not setting DNS when allowed IPS not

Mauro Santos registo.mailling at
Thu Aug 6 13:22:29 CEST 2020


Like the subject says I have found that when I'm not routing all traffic
through the vpn then my dns setting seems to be ignored (tested with

If I route all traffic through the vpn then it works as expected.

home network:

vpn "server" is at and internal vpn address is,
where I have the dns server running and a few other services accessible
only though the vpn.

"server" config (with systemd-networkd)
Name = wireguard
Kind = wireguard
Description = WireGuard VPN

ListenPort = 4911
PrivateKey = ...
#Publickey = ...

# Phone
PublicKey = ...
AllowedIPs =
Name = wireguard

Address =

"client" config (android vpn app):
name: msi
public key: ...
dns servers:

public key: ...
allowed ips:

The problem also persists if I access the vpn from outside my internal
network and is "fixed" if I change the allowed ips from to

>From what I have searched, other people with similar problems had a
configuration problem, but I don't think it is the case here since my
dns servers in on the same machine as other services and I can access
the other services without problems.

Any ideas on what the problem could be? I have checked the log on the
android app but none of the messages in the log seems to indicate any
problem, should I be looking for some warning/error messages in particular?

Mauro Santos

More information about the WireGuard mailing list