https://github.com/negrel/ovh-dynhost
OVH Dynamic Host bash script
https://github.com/negrel/ovh-dynhost
bash dns dynamic host script shell
Last synced: 12 months ago
JSON representation
OVH Dynamic Host bash script
- Host: GitHub
- URL: https://github.com/negrel/ovh-dynhost
- Owner: negrel
- License: mit
- Created: 2020-02-13T19:08:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-16T20:13:37.000Z (almost 6 years ago)
- Last Synced: 2025-01-08T09:14:02.254Z (about 1 year ago)
- Topics: bash, dns, dynamic, host, script, shell
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OVH Dynamic Host
This repo contain a bash script for updating **OVH** dynamic host.
## How to use
Firstly, you must set some environments variables :
- OVH_USERNAME *(your DynHost username)*
- OVH_PASSWD *(your DynHost password)*
- OVH_HOSTNAME *(your DynHost subdomain)*
### Run the script
This script set an environment variable to store external ip address and compare it to check if your ip address have change.
The variable is **EXTERNAL_IP**.
If you want the script to work correctly you must run it like this :
```
# If you have set the environments variables (don't forget the first dot)
$ . ./dynHost.bash
# else run it with
$ OVH_USERNAME="my_username" OVH_PASSWD="my_passwd" OVH_HOSTNAME="my_hostname" . ./dynHost.bash
```
### Log file
By default the log file is created from where the script is launch, you can provide a custom path by setting the log variable.
```
$ LOG="/home/USER/here" . ./dynHost.bash
```
## :stars: Show your support
Please give a :star: if this project helped you!
## :scroll: License
MIT © Alexandre Negrel