Setting up a DDNS script to update a DNS entry at Digital Ocean.

Well I have a VPN end point into my home network. But the issue has been the changing IP address you get with home networks, and Verizon charges to much for a static IP (I don’t want to go to a business account) So I found this site http://rizwanansari.net/digital-ocean-dynamic-dns/ that has a script for doing it. Then using this site https://michaelryom.dk/custom-ddns-on-ubiquiti-usg/?doing_wp_cron=1621004472.1860389709472656250000 I setup the following cron job on my Unifi router

0 */12 * * * /config/scripts/post-config.d/create-ddns

So now the script from the first site runs every 12 hours, at midnight and noon. So now when I connect I have a static host name to use that is updated every 12 hours with what ever my IP address is. Makes connecting my cell phone to my home network easy (using OpenVPN) plus I get all the anti-tracking and anti-ads that my Pi-hole has.

 Post details 

Categories: Technology
Tags: No Tags
Published on: May 20, 2021

 © 2024 - Michael P. O'Connor