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 220.127.116.11 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.
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.
7 Replies to “Dynamic DNS with OVH”
Thank you, just what i needed.
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.
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.
Thanks! I activated the redirection from HTTP to HTTPS. Beyond that I have no clue either…
I’m getting a html page back from the service:
401 Authorization Required
FAILED: 401 Authorization Required
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: Apache Server at http://www.ovh.com Port 80
I’ve filled in the conf like you did
At which step exactly? Did you launch ddclient in debug mode or something?
Merci Tom ! 🙂