VPN wrong DNS with "Use this connection only for resources on its network"
I just upgraded to Fedora 33, and I'm having trouble with my VPN with NetworkManager-l2tp-gnome-1.8.2-2.fc33.x86_64 . I guess there were some pretty big changes with systemd-resolved https://fedoraproject.org/wiki/Changes/systemd-resolved#Upgrade.2Fcompatibility_impact
After the upgrade, the NM setting
✅ Use this connection only for resources on its network
no longer works correctly.
- Previously, when connected to the VPN, my DNS settings would be this, which is correct, and which is what I want:
$ resolvectl dns
Global:
Link 2 (enp4s0):
Link 3 (wlp3s0): 192.168.11.1
Link 4 (virbr0):
Link 5 (virbr0-nic):
Link 6 (ip_vti0):
Link 33 (ppp0): 192.168.100.53
- After the upgrade, when I connect to the VPN, systemd-resolved doesn't pick up the DNS with Use this connection only for resources on its network.
$ resolvectl dns
Global:
Link 2 (enp4s0):
Link 3 (wlp3s0): 192.168.11.1
Link 4 (virbr0):
Link 5 (virbr0-nic):
Link 6 (ip_vti0):
Link 33 (ppp0):
- If I disable Use this connection only for resources on its network, then I get the correct configuration, but this is not what I want:
$ resolvectl dns
Global:
Link 2 (enp4s0):
Link 3 (wlp3s0):
Link 4 (virbr0):
Link 5 (virbr0-nic):
Link 6 (ip_vti0):
Link 33 (ppp0): 192.168.100.53