An open API service indexing awesome lists of open source software.

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

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