Skip to content

A simple (cron) script to update DynHost on OVH hosting

Notifications You must be signed in to change notification settings

farwarx/dynhost-ovh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

dynhost-ovh

A simple (cron) script to update DynHost on OVH hosting Fork of: https://github.com/yjajkiew/dynhost-ovh Link: https://yann.me/dynhost-ovh-pour-raspberry-pi-ou-une-machine-linux/

Prerequisites

This script works with two linux commands : curl & host

How to use

  1. Download the dynhost.sh script and put it in the folder /etc/cron.hourly (to check every hour)
  2. Add execution permissions to file : chmod +x dynhost.sh
  3. Modify the script with variables : HOST, LOGIN, PASSWORD

How it works

  1. The command host is used to retrieve the IP address of your domain name.
  2. The command curl (with the website ifconfig.co) is used to retrieve the current public IP address of your machine.
  3. The two IPs are compared and if necessary a curl command to OVH is used to update your DynHost with your current public IP address.

About

A simple (cron) script to update DynHost on OVH hosting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%