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 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 usingmyusername
andmypassword
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 ofhttps://
) 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
Built Distribution
Hashes for ovh_dynhost-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7bbbb227026e920ebb22ff83f97c4f0d8a8bfb88de333e84fb17c4486c88b27 |
|
MD5 | 4b8e8efa6f8e4df80c36f4b8eb9f61d4 |
|
BLAKE2b-256 | 60f875b37cda17f184ab0e9fae2e1d9c15b17638545c51046b04e5c9487baea8 |