You are not logged in.

#1 2015-09-14 18:46:04

ThreeMonkeys
Member
Registered: 2015-07-10
Posts: 15

OpenVPN and systemd-resolved

Hi,

On my Arch box, I'm using systemd-resolved for DNS resolution. I modified /etc/nsswitch.conf by replacing 'dns' by 'resolve', and made /etc/resolv.conf a symlink to /run/systemd/resolve/resolv.conf. Everything is working fine, as always with Arch Linux ;-)

However, when I was using Private Internet Access OpenVPN configuration (https://aur.archlinux.org/packages/priv … access-vpn), I noticed that it was updating /etc/resolv.conf with /usr/bin/resolvconf in order to use PIA DNS servers. I think that in my case, these servers are NOT used, as my /etc/resolv.conf is just here for legacy. Most of my softwares should directly be asking  systemd-resolved (because of /etc/nsswitch.conf configuration). Am I right or wrong?

If your are in my case, how do you (automatically) change the DNS servers when using a VPN?

Last edited by ThreeMonkeys (2015-09-14 18:46:38)

Offline

#2 2015-09-15 11:19:21

ThreeMonkeys
Member
Registered: 2015-07-10
Posts: 15

Re: OpenVPN and systemd-resolved

I think I will get rid of systemd-resolved, and get back to dhcpd. Bleeding edge is sometimes not so good smile

Offline

#3 2015-09-15 15:44:16

ThreeMonkeys
Member
Registered: 2015-07-10
Posts: 15

Re: OpenVPN and systemd-resolved

A few tests with tcpdump confirmed what I was supposing: my old DNS server is used even if /etc/resolv.conf gets updated by OpenVPN starting process.

Offline

Board footer

Powered by FluxBB