wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Wojtek Swiatek <w@swtk.info>
To: wireguard@lists.zx2c4.com
Subject: wireguard forces its host DNS on clients (?)
Date: Tue, 7 May 2019 14:36:08 +0200	[thread overview]
Message-ID: <CAPRYYOaqQsyWsnvZDu3=OQ+DMBLDcn2CtNf9_7WuKsV5tLfr9w@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 623 bytes --]

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).

[-- Attachment #1.2: Type: text/html, Size: 766 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

                 reply	other threads:[~2019-05-11 13:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPRYYOaqQsyWsnvZDu3=OQ+DMBLDcn2CtNf9_7WuKsV5tLfr9w@mail.gmail.com' \
    --to=w@swtk.info \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).