Built-in DNS Server - Not resolving connected clients
Hello, I have installed and connected my devices to OpenVPN, but the DNS server doesn't seem to work.
I'm able to ping each device with their VPN IP but not able to do it with the devicename.username format as it doesn't get resolved.
The DNS server has the default value: 10.8.0.1.
How can this issue get resolved?
I already followed the documentation and read this forum, but didn't find a solution.
Thank you in advance.
I continued debugging the issue and fortunately, I finally found the root cause and solution. Turns out the Ubuntu client wasn't updating the DHCP settings automatically, so I added the following lines to the ovpn file:
up /etc/openvpn/update-systemd-resolved down /etc/openvpn/update-systemd-resolved
And also installed the following dependencies:
sudo apt install resolvconf openvpn-systemd-resolved
With that, I was able to solve the issue and now all the clients are resolving automatically.