keversc / dynovh
Provide an implementation to dyndns with ovh.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 3
pkg:composer/keversc/dynovh
Requires
- ovh/ovh: ^2.0
- symfony/console: ^4.3
- symfony/dotenv: ^4.3
- symfony/process: ^4.3
- symfony/yaml: ^4.0
This package is auto-updated.
Last update: 2025-10-20 01:10:33 UTC
README
A DynDNS like for ovh
How to use it
- install it with
composer require keversc/dynovhor clone this repository - run
composer install - create an application on Ovh and get an api key
- copy the
config/ovh.yaml.distfile to aconfig/ovh.yamlfile :cp config/ovh.yaml.dist config/ovh.yamland configure it with the keys you've just created - add a cron with this command :
php <path_to_this_repo>/index.php dynovh:set-ip <your_dns_zone> <ip_or_provider>
What does it do ?
This command can accept a DNS zone and an ip:
php index.php dynovh:set-ip my-website.com 127.0.0.1
If no ip is provided, it will fetch it from a webservice on your internet provider box.
To do so, you will need to provide the internet provider name to the command via the --provider (or -p) option :
php index.php dynovh:set-ip my_website.com -p orange
Then, it will update your ovh dns record with this new ip address, using the Ovh api.
Configuration
There are 3 keys to configure in order for this command to work :
-app_key : Your ovh application key
-app_secret : Your ovh application secret
-consumer_key : Your ovh consumer key
If you have not already did it, you can get these 3 keys by registering your application on Ovh on this page : https://api.ovh.com/createToken/index.cgi
Warning
This currently, only works with the Orange internet provider.
Feel free to do a PR if you want to add another provider.