Coder Social home page Coder Social logo

dynhost-ovh's Introduction

dynhost-ovh

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

Prerequisites

This script works with two linux commands : curl and dig. If you do not have the dig you must install it from the package "dnsutils" :

sudo apt-get update
sudo apt-get install dnsutils

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. Rename dynhost.sh to dynhost (because "." at the end of the file name is not allowed in cron)
  4. Modify the script with variables : HOST, LOGIN, PASSWORD

How it works

  1. The command dig 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.
  4. Log file is on /var/log/dynhostovh.log

dynhost-ovh's People

Contributors

adrienvannson avatar alberto743 avatar chuddyni avatar laloose-lab avatar mfonville avatar nlhomme avatar yjajkiew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dynhost-ovh's Issues

Add LICENSE.md

Hello,

could you add some licensing info to this repository ?

Kubernetes cronjob

Hi,
thanks for this script !

I took the liberty to setup a docker image and a helm chart to deploy it to kubernetes (because why not ๐Ÿ˜† )

You might not need this at all but I thought I would notify you about it anyway.

Here is the fork https://github.com/nox-404/dynhost-ovh (see kubernetes branch)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.