On 03/06/20 09:55, Andrea wrote:
On 02/06/2020 11:59, Jan Just Keijser wrote:

most likely you are using openvpn-systemd-resolved  for this - if so, check the script
   /etc/openvpn/update-systemd-resolved
to see how it works. The OpenVPN binary itself does not do anything with the received DNS settings - it just passes them along to a plugin or script.

HTH,


In Ubuntu I do not have that file, but /etc/openvpn/update-resolv-conf
so I cannot use it.

On a Raspberry Pi on the other hand I have resolvconf running so I can use it.

Should both of them be shipped all the times?
this depends a bit on your Linux distro (and I don't use Ubuntu if I don't have to) ... AFAIK Ubuntu 20 is systemd based, so I'd recommend to install the update-systemd-resolved package
   apt install openvpn-systemd-resolved

or let NetworkManager take care of it ...

Otherwise I'd recommend to troubleshoot the /etc/openvpn/update-resolv-conf script. Do keep in mind that when you run a script like /etc/openvpn/update-resolv-conf  in combination with things like
  user openvpn
  group openvpn
then it is handy to use the down-root plugin - as otherwise your DNS settings might NOT be updated after a reconnect attempt.

HTH,

JJK



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to