Dynamic Client DNS Script?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
tmagna
OpenVpn Newbie
Posts: 1
Joined: Fri Jul 13, 2018 12:26 pm

Dynamic Client DNS Script?

Post by tmagna » Fri Jul 13, 2018 1:06 pm

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. I cannot provide logs at this time, but if they are deemed to be required I will work on getting some and will update the post.

Thanks,
tmagna

Post Reply