Skip to content

Cron job to update your SmartDNSProxy IP address if you only have dynamic IP, like me!

Notifications You must be signed in to change notification settings

nikscave/SmartDNSProxy_DynamicIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

SmartDNSProxy_DynamicIP

Cron job to update your SmartDNSProxy IP address if you only have dynamic IP, like me!

Install

  1. edit cron.sh with your smartdnsproxy API details
  2. edit cron.sh as appropriate depending on which location you are storing the script in. if not editing, save copy in /tmp/smartdns
  3. On initial run current.txt and new.txt need to be created e.g. echo your.ip.address.here > current.txt (and the same for new.txt)
  4. add script to crontab (amend from sh to bash depending on your shell used, I have this running on my OpenWRT router so its sh)

*/5 * * * * sh /tmp/smartdns/cron.sh

  1. start/restart your cron service depending if running already or not

/etc/init.d/cron start
/etc/init/d/cron restart

  1. Every 5 mins the script will run and update your active IP to smartdnsproxy if its changed.

About

Cron job to update your SmartDNSProxy IP address if you only have dynamic IP, like me!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages