Report this

What is the reason for this report?

how to connect gandi domain with digital ocean?

Posted on May 6, 2023

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



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!

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.

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., example.com) 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., example.com) 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!

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.