-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 20.04 - DNS pushed by the ovpn server shown in status, but not reflecting in resolv.conf #80
Comments
I think the issue is different. DNS Domain: ~.` and so it is not used. This script sets the DNS for the tunnel, but does not make them the default. |
I also have trouble getting this working with 20.04. |
This is the effect of not checking “Use this connection only for resources on its network” option for VPN link in NetworkManager. For more details see https://fedoramagazine.org/systemd-resolved-introduction-to-split-dns/
To make it the default you have to add the following line to your .ovpn config file for vpn:
However, the same might be already set for other links in which case DNS queries would be send to all DNS servers specified for links with this setting. See #59 for a script removing ~. from all other links to make sure all DNS queries are being routed through VPN link only. |
OpenVPN does not support |
@TinCanTech |
Openvpn |
@vishnus @audetto @mihneadb -- does the tip about |
NetworkManager release 1.26.6 no longer assigns the Closing this issue; please reopen if upgrading NetworkManager and/or setting |
Hi there,
The ovpn server's DNS push is reflecting fine in systemd-resolved --status:
But the /etc/resolv.conf still shows only 127.0.0.53. and dig to an internal domain doesnt work.
Symlink is to stub-resolv.conf:
/etc/resolv.conf -> /run/systemd/resolve/stub-resolv.conf
I've disabled the dns in NetworkManager.conf also, and set the vpn's dns priority as -42. Still doesnt seem to work.
Finally I disabled systemd-resolved service and switched to coredns, but then the connection itself is failing with this error:
WARNING: Failed running command (--up/--down): external program exited with error status: 1
Exiting due to fatal error
How can we solve this in Ubuntu 20.04 without having to disable this service? What could be the issue here?
The text was updated successfully, but these errors were encountered: