wireguard forces its host DNS on clients (?)

Wojtek Swiatek w at swtk.info
Tue May 7 14:36:08 CEST 2019


Hello

I set up Wireguard to connect an Ubuntu machine (client) to a Ubuntu
server. Everything works fine, except that when the VPN is up the DNS on
the client machine is forced to (apparently) the DNS of the host the
Wireguard server is on.

- when the VPN is down, the client machine has its DHCP provided DNS
servers set up
- when the VPN is up, the DNS is changed to the DNS of the VPN server host

How can this behaviour be switched off?

I tried to add a DNS = 127.0.0.1 entry on the client [Interface] definition
(to use a locally available DNS server) but it did not change anything
(after rebooting just in case).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20190507/f006825d/attachment.html>


More information about the WireGuard mailing list