Skip to main content

A script to update the OVH DynHost with your current public IP

Project description

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 overridden).

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.5.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

ovh_dynhost-0.5-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ovh-dynhost-0.5.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ovh-dynhost-0.5.tar.gz
Algorithm Hash digest
SHA256 83e423657d66442aaedca143411a802554bf1e00660e4260191feff8ad61f075
MD5 42e03aef38bc8b12bc43f79cb5b06611
BLAKE2b-256 0762a2953715020d0ea7068daeeb6cfd9b5a125b11bbff5a8e483de3212f1074

See more details on using hashes here.

Provenance

File details

Details for the file ovh_dynhost-0.5-py3-none-any.whl.

File metadata

  • Download URL: ovh_dynhost-0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ovh_dynhost-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f0a2381a2ff850e5bf79255fef6c70ad4c096a916c82a2724dd2f4ab3c2b2b0f
MD5 7c4fa9b64b9be426903050dd32e11af6
BLAKE2b-256 c4fb1adb35567bc7ed3aeb995bdf34796efd35204ffdd68187d9d2058c3db95e

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