OVH
Configuration
To use this provider, add an entry to creds.json
with TYPE
set to OVH
along with a OVH app-key, app-secret-key, consumer-key and optionally endpoint.
Example:
See the Activation section for details on obtaining these credentials.
endpoint
can take the following values:
eu
(the default), for connecting to the OVH European endpointca
for connecting to OVH Canada API endpointus
for connecting to the OVH USA API endpointan url for connecting to a different endpoint than the ones above
Metadata
This provider does not recognize any special metadata fields unique to OVH.
Usage
An example configuration: (DNS hosted with OVH):
An example configuration: (Registrar only. DNS hosted elsewhere)
Activation
To obtain the OVH keys, one need to register an app at OVH by following the OVH API Getting Started
It consist in declaring the app at https://eu.api.ovh.com/createApp/ which gives the app-key
and app-secret-key
. If your domains and zones are located in another region, see below for the correct url to use.
Once done, to obtain the consumer-key
it is necessary to authorize the just created app to access the data in a specific account:
It should return something akin to:
Open the "validationUrl" in a browser and log in with your OVH account. This will link the app with your account, authorizing it to access your zones and domains.
Do not forget to fill the consumer-key
of your creds.json
.
For accessing the other international endpoints such as US and CA, change the https://eu.api.ovh.com
used above to one of the following:
Canada endpoint:
https://ca.api.ovh.com
US endpoint:
https://api.us.ovhcloud.com
Do not forget to fill the endpoint
of your creds.json
if you use an endpoint different than the EU one.
New domains
If a domain does not exist in your OVH account, DNSControl will not automatically add it. You'll need to do that via the control panel manually.
Dual providers scenario
OVH now allows to host DNS zone for a domain that is not registered in their registrar (see: https://www.ovh.com/manager/web/#/zone). The following dual providers scenario are supported:
Caveats
OVH doesn't allow resetting the zone to the OVH DNS through the API. If for any reasons OVH NS entries were removed the only way to add them back is by using the OVH Control Panel (in the DNS Servers tab, click on the "Reset the DNS servers" button.
There may be a slight delay (1-10 minutes) before your modifications appear in the OVH Control Panel. However it seems that it's only cosmetic - the changes are indeed available at the DNS servers. You can confirm that the changes are taken into account by OVH by choosing "Change in text format", and see in the BIND compatible format that your changes are indeed there. And you can confirm by directly asking the DNS servers (e.g. with
dig
).OVH enforces the Restrictions on valid hostnames. A hostname with an underscore ("_") will cause the following error
FAILURE! OVHcloud API error (status code 400): Client::BadRequest: "Invalid domain name, underscore not allowed"
Last updated