Dynamic DNS with OVH

It may not be a clear thing, but OVH allows to have your own Dynamic DNS if you rent a domain name, surely a better thing than the weird paid website from dyndns.org. I will explain how to handle the update with Linux using ddclient.

On the manager

Connect to https://www.ovh.com/manager/web/#/configuration/domain/ , select your domain name, and create a new dynhost with the button on the right.

Enter a sub-domain name such as “mydyn” (.tombarbette.be), and add the actual IP for now, or just 8.8.8.8 for the time being.

Then it is not finished, you have to create a login that will be able to update that dns entry. Select the second button to handle accesses and create a new login.

Select a login, probably the name of the subdomain, the subdomain itself, and a password.

On the server

sudo apt install ddclient

Then edit /etc/ddclient.conf

protocol=dyndns2
use=web,web=checkip.dyndns.com
server=www.ovh.com
login=tombarbette.be-mydns
password='password'
mydns.tombarbette.be

Just do “sudo ddclient” to update once then “sudo service ddclient restart” to get it updated automatically.

May this be helpful to someone, personally I just forget it all the time so I wanted to leave a post-it somewhere.

6 Replies to “Dynamic DNS with OVH”

  1. It just works, thanks – incredibly simple. Be sure to just skip over the setup as you won’t be able to replicate the above config with it.

  2. Thanks this was very useful to me. Worked perfectly thank you.

    incidentally at the time of writing tombarbette.be gave me the warning “connection is not private”. I had to connect anyway. Not sure why this is because certificate looks ok. You might like to investigate.

  3. I’m getting a html page back from the service:

    401 Authorization Required

    FAILED:
    FAILED: 401 Authorization Required
    FAILED:
    FAILED: Authorization Required
    FAILED: This server could not verify that you
    FAILED: are authorized to access the document
    FAILED: requested. Either you supplied the wrong
    FAILED: credentials (e.g., bad password), or your
    FAILED: browser doesn’t understand how to supply
    FAILED: the credentials required.
    FAILED:
    FAILED: Apache Server at http://www.ovh.com Port 80
    FAILED:

    I’ve filled in the conf like you did

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload the CAPTCHA.