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://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
  • Use the (unencrypted, check the http:// instead of https://) API from whatismyipaddress.com

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ovh-dynhost-0.4.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for ovh-dynhost-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f54859f7736236eaf85fbf01492dfe507776119c762918a024eea64fa9e45f99
MD5 9760c8c5b899de569d8e236ae75c29bc
BLAKE2b-256 cf5831b3fe6c5bf27963188f1e16d043cd624d267838c111de07540219a83a8f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ovh_dynhost-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for ovh_dynhost-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10a01f0bdf40113e31e15a26f64b88f6d368e984ff140618e1dfb18cecc7db5e
MD5 4dba7a87d13481805cd5627c5481edb8
BLAKE2b-256 ec97a2546cc68f43cd54f34ae4f66782769b1bb24a45d2e2fda1dd867b53ddbb

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