I started getting some issue on my Ubuntu 18.04 a few days ago even though I didn't change any networking settings.
The problem is when I connect to my work VPN (OpenVPN) I can't resolve any DNS names on that VPN network if I select "Use this connection only for resources on this network". If I disable that option then I can resolve DNS inside the network, but naturally can't connect to anything outside.
Here's the output of systemd-resolve --status
if I DISABLE "Use this connection only for resources on this network" and connect to the VPN:
Link 10 (tun0)
Current Scopes: DNS
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 10.xxx.xx.xx
DNS Domain: ~.
So it actually shows the DNS server. But once I switch "Use this connection only for resources on this network" back ON:
Link 11 (tun1)
Current Scopes: none
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
Link 10 (tun0)
Current Scopes: none
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
I have tried solutions in this question Ubuntu 18.04 no DNS resolution when connected to openvpn but nothing seemed to work.
I've also tried using unbound
package and that didn't help either.
Found also this Suddenly not able to access resources on VPN network in Ubuntu 18.04? so I'm obviously not alone in this, but it doesn't have any solutions.
A bit lost what else to do, don't want to reinstall the whole system because of this.
Until today I was just temporarily adding the nameserver to
– SergioLeone Nov 13 '19 at 12:08/etc/resolv.conf
and that was solving it of course, but after the fixes today I've broken something even more, so now modifying/etc/resolv.conf
does not work anymore.nameserver
andsearch
in/etc/resolv.conf
and that fixed it. But of course that's a temporary fix. Would like to figure out what caused the issue in the first place and how to resolve it so I don't need to modify/etc/resolv.conf
each time I boot. – SergioLeone Nov 13 '19 at 12:15