DEV Community

Reece Daniels
Reece Daniels

Posted on • Originally published at rubensbits.co on

GoDaddy, Surge, Apex Domains & CNAME Records


Problem

Summary

You need to get an apex domain (https://yoursite.com) you purchased at GoDaddy resolving correctly.

Explanation

The problem you face if your asked to do this is that - for basic domain purchases at least - GoDaddy doesn’t let you add CNAME records for apex domains .

An apex domain refers to https://yoursite.com rather than https://www.yoursite.com.

Solution

Explanation

  1. The advice from GoDaddy is that you must delete all A & CNAME records on GoDaddy first before adding any other CNAME or A records.
  2. You must replace the CNAME @ record with an A @ record using the IP of your host provider.

My host is surge.sh, who provide their IP in this documentation.

Thus, to have my domain recognised when deploying to surge I needed to delete all existing A & CNAME records, and to add the following two records following in the Type : Name : Value format:

CNAME: www : na-west1.surge.sh

A : @ : 45.55.110.124

Once complete, my domain resolved within 5 minutes.

If you’re struggling to locate your providers IP, try messaging them on Twitter or searching StackOverflow, but once you have it, it should do the trick.

Original source: GoDaddy Forums

AWS Q Developer image

Build your favorite retro game with Amazon Q Developer CLI in the Challenge & win a T-shirt!

Feeling nostalgic? Build Games Challenge is your chance to recreate your favorite retro arcade style game using Amazon Q Developer’s agentic coding experience in the command line interface, Q Developer CLI.

Participate Now

Top comments (0)

Heroku

Build AI apps faster with Heroku.

Heroku makes it easy to build with AI, without the complexity of managing your own AI services. Access leading AI models and build faster with Managed Inference and Agents, and extend your AI with MCP.

Get Started

👋 Kindness is contagious

Explore this insightful piece, celebrated by the caring DEV Community. Programmers from all walks of life are invited to contribute and expand our shared wisdom.

A simple "thank you" can make someone’s day—leave your kudos in the comments below!

On DEV, spreading knowledge paves the way and fortifies our camaraderie. Found this helpful? A brief note of appreciation to the author truly matters.

Let’s Go!