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-resolvedAnd also installed the following dependencies:
sudo apt install resolvconf openvpn-systemd-resolvedWith that, I was able to solve the issue and now all the clients are resolving automatically.
-
G girish marked this topic as a question on
-
G girish has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login