Skip to main content

A script to update the OVH DynHost service public IP

Project description

This script sets the DynHost service (that must be created before, check https://www.ovh.com/us/g2024.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovh-dynhost-0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

ovh_dynhost-0.3-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ovh-dynhost-0.3.tar.gz.

File metadata

  • Download URL: ovh-dynhost-0.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ovh-dynhost-0.3.tar.gz
Algorithm Hash digest
SHA256 b194b19500d7421e7eaccd0b48b817168d5f6ab0719a6b50dc2962b02ccd48df
MD5 c478b0beb6b40e29eb3022a9345210c6
BLAKE2b-256 279dcc0abd7a3f1ebefde4fd35b8c0794bd7955ea6a73e1d12d09c3f37cb1e26

See more details on using hashes here.

Provenance

File details

Details for the file ovh_dynhost-0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ovh_dynhost-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31636e7e469e45db6b1af67ab37ce0be051fdee8a48ef2701e5b199f68ec0e51
MD5 5d960bf86899bde804e8344e53eec66d
BLAKE2b-256 96037cb8fe4033766df46e999acfd52a5dec916b3cf40c7ed753a06bcfc8ef86

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page