-
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
Can't update DNS using OpenVPN #37
Comments
Which of the three modes of operation described at https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html#/etc/resolv.conf do you use in regard to |
Hi @piotr-dobrogost, I have /run/systemd/resolve/resolv.conf symlinked to /etc/resolv.conf, however my /etc/resolv.conf is also managed by the ubuntu's NetworkManager service. systemd-resolve --status return and unreconigzed option (there's no status in the options at all). I'm using version (as per systemd-resolve --version): systemd 229 |
You won't see any per this note:
As to
…having both systemd-resolved and NetworkManager manage
That's because |
So I have my NetworkManager configured to use dns=systemd-resolved, as per the documentation. I can see that my /etc/resolv.conf is a symlink to /run/systemd/resolve/resolv.conf I'm guessing it's related with the version of NetworkManager I'm using from the default ubutnu repos, Version 1.2.6 and seems to be the latest they offer. |
I've never been a fan of NetworkManager. 😄 While it's nice to be able to manage your interfaces and their configuration from the toolbar, it comes with a whole host of shortcomings for me which limit flexibility, automatability, and stability. The question I think here is: What is the nature of the relationship between NetworkManager and NetworkManager has always had a history of being the ultimate authority over what it controlled and it sounds like this carries on here. My script treats Is there any chance you can look into trying this without NetworkManager being enabled? Maybe Let us know how it goes. |
Hi,
I'm having an issue despite following the setup. I'm currently running Ubuntu 16.04 Xenial and using openvpn.
I'm having DNS issues connecting to some AWS hosted applications.
I've installed the update-systemd-resolved binaries and enabled/started the service. Also added the following config to my *.ovpn configuration file:
And this to my /etc/nsswitch.conf:
When I start the openvpn with my credentials, I can definitely see that the UP/DOWN scripts have been added:
UP:
DOWN:
However I don't see any changes to my /etc/resolv.conf file, I was expecting to see something like
nameserver xxx.x.x.x in there with my DNS nameserver
But all I see is:
nameserver 192.168.72.8
And I still can't resolv the DNS for my AWS hosted apps, any suggestions?
The text was updated successfully, but these errors were encountered: