I'm having a problem with a VPN connection using OpenVPN on Ubuntu 22.04. When I connect to my VPN Server I can access my devices in my private network by IP Address, but I can't access by name resolution (my connection is consulting the DNS of my provider, not my private DNS). Analyzing the connection I could see that my VPN Server is providing the IP Address for my device and the IP Address of my private DNS server, which is being put in the file /run/NetworkManager/no-stub-resolv.conf
, but the name resolution of internal addresses isn't working.
Searching on the Internet, somebody said I have to install openvpn-systemd-resolved
to solve this problem. I installed, but I couldn't find how to configure it.
How can I configure openvpn-systemd-resolved
in this situation?