Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rdbisme/ovh-dynhost
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)
https://github.com/rdbisme/ovh-dynhost
dynamic-dns ipify ovh ovh-dynhost
Last synced: about 1 month ago
JSON representation
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)
- Host: GitHub
- URL: https://github.com/rdbisme/ovh-dynhost
- Owner: rdbisme
- License: bsd-2-clause
- Created: 2017-01-05T03:51:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-25T00:16:33.000Z (almost 4 years ago)
- Last Synced: 2024-04-26T19:48:53.755Z (7 months ago)
- Topics: dynamic-dns, ipify, ovh, ovh-dynhost
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 12
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.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](http://www.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
```