maghuro
Very Senior Member
What it does is that it updates your DNS-O-Matic hostname.
It's pretty simple, and very badly coded, but hey.. it works!
Suggestions are appreciatted here, or via pull request on github:
https://github.com/maghuro/stuff/blob/master/dnsomatic
Install with:
For the first run:
Then, list of available commands:
Thanks @Jack Yaz for the Print_Output code.
I recommend to add the following line on services-start:
It's pretty simple, and very badly coded, but hey.. it works!
Suggestions are appreciatted here, or via pull request on github:
https://github.com/maghuro/stuff/blob/master/dnsomatic
Install with:
Code:
/usr/sbin/curl -s --retry 3 https://raw.githubusercontent.com/maghuro/stuff/master/dnsomatic -o /jffs/scripts/dnsomatic && chmod 755 /jffs/scripts/dnsomatic && ln -s /jffs/scripts/dnsomatic /opt/bin/dnsomatic
For the first run:
Code:
dnsomatic set USERNAME YourUsername
dnsomatic set PASSWORD YourPassword
dnsomatic set HOSTNAME YourHostname (usualy all.dnsomatic.com)
Then, list of available commands:
Code:
dnsomatic config # list of contents of config file
dnsomatic cron X # creates the cronjob, where X is the number of minutes for each IP check
dnsomatic init # you can use it on wan-event connected, for example. The only thing it does is to give a 30s sleep before first update
dnsomatic force # forces an update even if the current IP is the same
dnsomatic force 11.11.11.11 country # forces an update to the given IP. Country is optional
I recommend to add the following line on services-start:
Code:
/jffs/scripts/dnsomatic cron 5 #dnsomatic cronjob