Giter Site home page Giter Site logo

chapchap / ovh-dynhost Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rdbisme/ovh-dynhost

0.0 1.0 0.0 26 KB

A command line script to update a OVH DynHost with your current public ip. (This repo is a mirror. Official one: https://gitlab.com/rubendibattista/ovh-dynhost)

License: BSD 2-Clause "Simplified" License

Python 100.00%

ovh-dynhost's Introduction

ovh-dynhost

This script sets the DynHost service (that must be created before, check https://docs.ovh.com/gb/en/domains/hosting_dynhost/) with your current public IP that is retrieved from ipify.org API (default, can be overriden).

Installation

Install the script using pip (I strongly suggest to use a virtualenv)

pip install .

(The script will be now available in the PATH. Reactivate the virtualenv if necessary)

PS: The script is also available directly on PyPI.

pip install ovh_dynhost

Usage

  • Sets the home.mydomain.com host to your current public IP retrieved from (SSL) ipify.org using myusername and mypassword as credentials.
ovh-dynhost home.mydomain.com myusername mypassword
  • Sets the 0.0.0.0 IP instead of the current public IP
ovh-dynhost --ip=0.0.0.0 home.mydomain.com myusername mypassword
ovh-dynhost --pub-ip-source=http://bot.whatismyipaddress.com home.mydomain.com myusername mypassword
  • Same as first but logging also into ovh.log file
ovh-dynhost --log-file=ovh.log home.mydomain.com myusername mypassword

If your prefer to not show up your username or password in the shell, you can provide a separate JSON configuration file. By default the script will lookup into $HOME/.ovh-dyndns.conf, but you can also provide a custom configuration file

ovh-dynhost home.mydomain.com --conf-file=/etc/ovh-dyndns/config.json

ovh-dynhost's People

Contributors

aspyct avatar chapchap avatar entourloop avatar rdbisme avatar

Watchers

 avatar

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.