OpenVPN Client Dynamic DNS

We are trying to get dynamic DNS set up for VPN clients, as they will need to communicate with each other via hostname. I tried following this guide:

https://dan.langille.org/2013/11/25/ope … namic-dns/

The script appears to work, as entering debugging mode and manually running it updates our DNS server, however when added in the OpenVPN server config it breaks the clients’ ability to comunicate over VPN. Below is how we were adding it to the server config:

—Omitted for Brevity —

script-security 2
learn-address /etc/openvpn/learn-address.sh

—Omitted for Brevity —

Obviously, the script is located where we are point the server config, I’m just curious if perhaps we are using the incorrect config for invoking the script.

If anyone has any thoughts or experience with this, please let me know. We also attempted to use the mechanism detailed in this OpenVPN article: https://community.openvpn.net/openvpn/wiki/DynamicDNS however this doesn’t appear to be working in the latest release either.

Thanks!

1 Like