I have a server at home that I use to do snapshot style backups using rsync. As such, I’d like to be able to connect to it from time to time when not at home. This is a simple way to update your Dynamic DNS with NameCheap.
Create a file called
ddns and place it in
/etc/cron.daily and set the permissions to
IP=$(exec wget -q -O - http://jackson.io/ip/)
You’ll want to change some of the variables in the long URL. After that, it will update NameCheap DDNS on a nightly basis. No more need for a static IP.
Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts. firstname.lastname@example.org