Skip to content

Latest commit

 

History

History
44 lines (39 loc) · 1.75 KB

README.md

File metadata and controls

44 lines (39 loc) · 1.75 KB

dynFreeDNSUpdate

Bash script to keep your dynamic DNS from freedns.afraid.org & Cactus VPN updated

Inspiration from: http://freedns.afraid.org/scripts/dnsactual.sh.txt

Client requirement

  • wget

Installation

mkdir -p /etc/freedns/
  • Download the DNS update script into your newly created folder; make the file executable
wget -O /etc/freedns/dynFreeDNSUpdate.sh https://raw.githubusercontent.com/hbjcr/dynFreeDNSUpdate/master/dynFreeDNSUpdate.sh
chmod +x /etc/freedns/dynFreeDNSUpdate.sh
  • Modify your dynFreeDNSUpdate.sh Edit your /etc/freedns/dynFreeDNSUpdate.sh using your favorite editor and include the following changes:
  • Replace the [freedns direct URL] placeholder (line #26) with your actual freedns' direct URL
  • Replace the [CactusVPN validation URL] placeholder (line #27) with your actual CactusVPN's validation URL
  • Execute the script for the first time
./etc/freedns/dynFreeDNSUpdate.sh

At this point you should be able to query your /etc/freedns/dynFreeDNSUpdate.log file to debug the result

  • Add a new job to cron
crontab -e
  • Add a new entry to execute the job every 30 minutes
0,30 * * * * sh /etc/freedns/dynFreeDNSUpdate.sh

There is no need to restart the cron service, the job will be executed in 30 minutes