Joined: 04 Dec 2004
|Posted: Sat Dec 14, 2013 5:26 pm Post subject: Openvpn not updating resolv.conf when using systemd [solved]
I'm trying to migrate from openrc to systemd and I'm having some problems...among them: openvpn doesn't update resolv.conf when run through the systemd service ("systemctl start openvpn@XXX")... When I check "/var/log/openvpn.log" everything seems fine (it reaches the "Initialization Sequence Completed" message), but I cannot resolve names (with ssh, e.g.) which the remote server is aware of... You would think this is a problem with my client or server configuration (over which, I have no control whatsoever) but this was not happening before with openrc and the classic /etc/init.d/openvpn.XXX start
I have another OpenVPN setup of my own which works perfectly with systemd, but it doesn't require any DNS push stuff...
Solved: I just had to add
to the .conf (client) file. The init.d script was doing this through arguments passed to the daemon.