Pointing Gandi domain to OVH hosting – WEB

Pointing Gandi domain to OVH hosting –...

Hi all,
I didn’t know what to write for my first post, this is not about Java or game development but it can be useful for everyone.
For informations: OVH and Gandi are french companies offering web services like hosting, domain, VPS…
I’m not sponsored by them, in fact I don’t really like Gandi and I hate OVH support, but I’ve been stuck for few days with this problem, because of a wrong information on OVH help, so I just want share the solution with you! In my case, it was for .app domains, if you also need to redirect your emails, you will need some additional DNS records, or simply use email redirection.
As these companies are french, they have a lot of french customers so I’ll also give some explanations in french. Then we won the 2018 World Cup, so…

  • English: I’ll explain how to point (redirect) your gandi domain to your OVH server / hosting.
  • French: Je vais vous expliquer comment faire pointer (rediriger) votre nom de domaine Gandi vers votre serveur / hébergement OVH.
The problem was:

– I’ve a .app domain on Gandi (in my steps I’ll use “mygandidomain.com”)
– My hosting is on OVH (hosting plan: perso2014)
– Web forwarding is not available for .app domains, and .app domains work only over HTTPS

So how can myfakedomain.app and www.myfakedomain.app point to my website hosted on OVH?

The solution is:

– Add the external domain on OVH
– Edit DNS records on Gandi
– Add the external domain on OVH (again)
– Generate a SSL certificate


  • First you have to add the external domain (gandi domain) on OVH, it will give you the DNS records you have to add on Gandi. Be careful, OVH made a mistake, you have to use “ovhcontrol” and not “ovhcontrol.mygandidomain.com”, more details in the steps below.
  • Second you have to add these DNS records on Gandi, the manipulation is easy and quick to do, but it takes effect only 24-48 hours after because of the duration of DNS propagation delay, so, be patient!
  • You have to wait 24-48h, usually it takes a day, but OVH will automatically delete the domain you first added because it will not find the DNS records on Gandi because of the DNS propagation delay. So you have to the first step again, yes, you have to add the external domain again.
  • Then you can activate SSL on OVH for your external domain, then generate the SSL certificate, and… It’s over!
Le problème était :

– J’ai un domaine mygandidomain.com sur Gandi
– Mon hébergement est sur OVH (hébergement perso2014)
– La redirection web n’est pas disponible pour les domaines .app et les .app ne fonctionnent qu’en HTTPS

Donc comment faire pointer mygandidomain.com et www.mygandidomain.com vers mon site hébergé chez OVH ?

La solution est :

– Ajouter le domaine externe sur OVH
– Modifier les Enregistrements DNS sur Gandi
– Ajouter le domaine externe sur OVH (une nouvelle fois)
– Générer un SSL certificate


  • Premièrement, il faut ajouter le nom de domaine externe (celui de Gandi) sur OVH, cela permettra d’obtenir les Enregistrements DNS qu’il faut ajouter sur Gandi. Attention à l’information erronée d’OVH, il faut utiliser “ovhcontrol” et pas “ovhcontrol.mygandidomain.com”, plus de détails ci-dessous.
  • Deuxièmement, il faut changer les Enregistrements DNS sur Gandi, la manipulation est facile et rapide, mais il faut attendre 24-48 heures avant qu’elle soit effective à cause du délai de la propagation DNS. Soyez patient(s) !
  • Vous devez donc attendre 24-48 heures, généralement 1 jour suffit, mais OVH va automatiquement supprimer le domaine que vous avez ajouté parce qu’il n’aura pas trouvé les Enregistrements DNS sur Gandi à cause du délai de propagation. Donc vous devez ajouter une nouvelle fois votre nom de domaine externe comme décrit dans “Premièrement”.
  • Ensuite vous devez activer, sur OVH, le SSL sur votre domaine externe puis générer le certificat SSL, et… C’est fini !

Follow these instructions carefully because when you edit your DNS records, you will have to wait 24-48 hours for your modifications to be effective. So, if you make a mistake you will have to wait 24-48 hours again once you realized your mistake…

1. Go to https://www.ovh.com/manager/web/, click on “Web“, then your hosting, then “Multisite“, then “Add a domain or sub-domain“.

2. Check “Add an external domain” then “Next“.

3. Add the external domain, the website folder, check “Also create the sub-domain www…“, then click on “Next“.

4. Save the TXT record value and the A record IP, here “randomstringabcdefghijkl” and ““, you will need it later on Gandi, then click on “Confirm“.

5. Connect to https://admin.gandi.net/domain/ and click on your domain.

6. Click on “DNS Records“, scroll down to “Edit DNS records” and click on it.
7. Delete existing lines for the same records (by example, remove “@ 10800 IN A X.X.X.X“, the TXT record…) and add these 5 lines:

* 10800 IN A
@ 10800 IN A
ovhcontrol 1800 IN TXT “randomstringabcdefghijkl”
mygandidomain.com 1800 IN A
www.mygandidomain.com 1800 IN A

Don’t use “ovhcontrol.mygrandidomain.com” even if OVH says it, it will not work! Just use “ovhcontrol“.
Then click on “Save“.

8. The easiest but most annoying step: Wait 24-48 hours… So you have time to play our last Android game here, or some of our iOS games here 🙂

9. Welcome back! OVH will have probably deleted the domain you added in step 1, so do this step again ! (Step 1). Then wait few minutes, do some mental calculations, refresh the page then, on your external domain WITHOUT “www”, click on the “Settings icon” then “Edit“.
10. You will get a similar menu as you saw at the Step 3 but with more options, check “Also modify the sub-domain www…“, check “SSL” and click “Next“.
11. Verify that “SSL” is “Enable” then click on “Confirm“.

12. You should get a status “To generate” on your external domain (and the same domain with www.). If you get an error, it means the DNS propagation is not finished or you have an error on your Gandi DNS records.

13. You will have to wait up to 2 hours before generate the SSL certificate, else it’s possible that your external domain is not included in the new certificate… So, relax, sit down and play some Mahjong games here 🙂

14. Welcome back again! Hope you enjoyed the game…
Click on “General information“, then over the “Configuration” tab, click on “Actions” then “Regenerate SSL certificate

15. Then, you have to wait again, from few minutes to an hour. And I don’t say this to make you play our games 😛

If you follow the steps, everything should be OK. I did this for a dozen of domains and it works well, with and without www, over HTTPS. If you have any problem, just comment, I’ll reply as fast as possible.


Show Comments (2)


  • Xander Wond

    Hi, thanks for detailed guidelines. Although my issue is not that challenging, I’m pointing Gandi domains, mainly .com to OVH hostings and e-mail services cause they are much more advanced and less expensive. But I’m getting completely crazy with all those manipulations and would like to ask your advice if it makes sense to keep domains at gandi or it’s better to transfer them to OVH and forget about this DNS nightmare… I still don’t have web-developer in my team and a bit afraid to provide access to agencies to my gandi basket of domains. Thanks in advance, XW

    • Article Author
    • Reply
    • jb

      Hi XW,
      OVH is also cheaper when you register a domain for the first time (but not sure about the renew price), so if you prefer their services I think you should transfer your domains there, it will be easier to manage. But this is not free… You’ll have to pay the domain registration again.
      Else if you still want to keep your domains on Gandi, just follow my article and also change the Gandi DNS Records:

      @ 10800 IN MX 10 blablabla.
      @ 10800 IN MX 50 blablabla.
      imap 10800 IN CNAME blablabla.
      pop 10800 IN CNAME blablabla.
      smtp 10800 IN CNAME blablabla.
      webmail 10800 IN CNAME blablabla.

      By the OVH DNS Records that you can find in the “DNS zone” tab on your OVH Manager dashboard, or here (replace yourdomain.com by your domain):

      It should be something like:

      imap IN CNAME ssl0.ovh.net.
      mail IN CNAME ssl0.ovh.net.
      pop3 IN CNAME ssl0.ovh.net.
      smtp IN CNAME ssl0.ovh.net.
      (and one or few MX records, maybe you have to add “@ 10800 IN MX” instead of only “IN MX”)
      IN MX 2 mx1.ovh.net.
      IN MX 5 mx2.ovh.net.

      I’m not sure about this manipulation I’ve never tried before. So make a backup of your DNS Records before editing anything!
      Else you can ask OVH and Gandi Support, but good luck with them, explain clearly your problem and exactly what you need if you want a “good” answer.

      Anyway, the easiest solution, if you have the budget, is to transfer your domains to OVH.
      Let me know which solution you chose!

      Hope it will help you 🙂

      • Article Author
      • Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.