how to connect gandi domain with digital ocean?

I bought a domain on gandi, and now i added the ssl. How do i connect with digital ocean?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
May 6, 2023

Hi there,

Here’s a step-by-step guide on how to do that:

Step 1: Update nameservers at Gandi

  1. Log in to your Gandi account.
  2. Go to the “Domain” section, and click on the domain you want to connect to DigitalOcean.
  3. Look for the “Nameservers” or “DNS Records” section.
  4. Replace the existing nameservers with DigitalOcean’s nameservers:
  5. Save your changes.

Please note that it may take up to 48 hours for the changes to propagate.

Step 2: Add your domain to DigitalOcean and configure DNS records

  1. Log in to your DigitalOcean account.
  2. Go to the “Networking” tab in the left-side menu.
  3. Under “Domains,” click the “Add a domain” button.
  4. Enter your domain name (e.g., and select the droplet you want to associate with it.
  5. Click “Add Domain.”

Now you need to create appropriate DNS records. You’ll usually need at least an A record for the root domain and a CNAME record for the “www” subdomain:

  1. In the “Create new record” section, select “A” from the dropdown menu.
  2. Enter “@” in the “Hostname” field (this represents the root domain).
  3. Enter the IP address of your droplet in the “Will direct to” field.
  4. Click “Create Record.”

Next, create a CNAME record for the “www” subdomain:

  1. In the “Create new record” section, select “CNAME” from the dropdown menu.
  2. Enter “www” in the “Hostname” field.
  3. Enter your root domain (e.g., in the “Will direct to” field.
  4. Click “Create Record.”

You can create additional DNS records as needed for other subdomains or services like email.

Please note that DNS changes can take up to 48 hours to propagate. Once the changes have propagated, your domain should be connected to DigitalOcean, and your website should be accessible using the new domain.

Step 3: Set up SSL

If you haven’t set up SSL yet, you can use Let’s Encrypt to obtain a free SSL certificate. DigitalOcean provides an easy way to set up Let’s Encrypt SSL certificates for your domains with their built-in integration. You can follow the guide here to set up Let’s Encrypt SSL: How to Secure Your Website with Let’s Encrypt on DigitalOcean

Hope that this helps!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel