Linux.com

DNS Clients

Link to this post 23 May

Hi,

I have a synology DS that I host my sites on. Every month I have to reset my dns which is dynamic, and I use freedns.org. I have noticed that you can get scripts that do this for you automatically.
Here is an example I am thinking of trying Example script
What my questions is: where would I put this script to be running all the time?
I have looked through it and think I can do this as it looks pretty basic.
The synology is a variant of linux:

> ls
bin initrd opt sbin var
dev lib proc sys var.defaults
etc lost+found root tmp volume1
etc.defaults mnt run usr

This is the system.
Thanks

Link to this post 01 Jun

Put it anywhere in $PATH (echo $PATH) ie /usr/local/ and call it with a cron job
example:
# run at 2:15pm on the first of every month
15 14 1 * * $HOME/bin/monthly

See man 5 crontab for more info.

harv

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board