DNS configuration issue with apex domain (pizzeriaintrigante.it) on Aruba – CNAME “@” not supported
gapdigitalagency
PROOP

17 days ago

My website works correctly when accessed via www.pizzeriaintrigante.it, but it cannot connect to the domain without “www” (pizzeriaintrigante.it). When I try to add this domain on Railway, I am asked to create two DNS records in the Aruba control panel, including a CNAME with the name “@”. Unfortunately, my provider does not allow me to use “@” as the name for a CNAME record. How can I work around this limitation? At the moment, I am forced to manage the configuration using two separate hosting services.

Solved$10 Bounty

Pinned Solution

hey, yes lot of DNS providers dont support CNAME @ records (CNAME flattening - read more about it here - https://docs.railway.com/networking/domains#important-considerations)

The simplest fix is to move your DNS to Cloudflare. It’s free, and it supports root CNAME properly.

Here’s what you’d do:

  1. Create a free Cloudflare account.

  2. Add pizzeriaintrigante.it to Cloudflare.

  3. Cloudflare will give you two nameservers.

  4. Go to Aruba and replace the current nameservers with the ones Cloudflare gives you.

  5. Wait for the nameserver change to propagate (usually less than an hour).

After that, manage your DNS inside Cloudflare instead of Aruba.

Then add these two records in Cloudflare DNS:

  • pizzeriaintrigante.it → CNAME → <your-service>.up.railway.app

  • www → CNAME → <your-service>.up.railway.app

Set both to DNS only (grey cloud) while Railway validates the domain.

Once DNS updates, Railway should validate automatically and both versions of the site will work.

2 Replies

17 days ago

Hey, what do you mean with "forced to manage the configuration using two separate hosting services"? The most straight forward way would be to set up your domain with Cloudflare and let Cloudflare handle your DNS records (Cloudflare supports CNAME flattening for your apex domain). This can be achieved by creating a Cloudflare account, adding your domain to it and then changing your domain's name servers to Cloudflare's.


hey, yes lot of DNS providers dont support CNAME @ records (CNAME flattening - read more about it here - https://docs.railway.com/networking/domains#important-considerations)

The simplest fix is to move your DNS to Cloudflare. It’s free, and it supports root CNAME properly.

Here’s what you’d do:

  1. Create a free Cloudflare account.

  2. Add pizzeriaintrigante.it to Cloudflare.

  3. Cloudflare will give you two nameservers.

  4. Go to Aruba and replace the current nameservers with the ones Cloudflare gives you.

  5. Wait for the nameserver change to propagate (usually less than an hour).

After that, manage your DNS inside Cloudflare instead of Aruba.

Then add these two records in Cloudflare DNS:

  • pizzeriaintrigante.it → CNAME → <your-service>.up.railway.app

  • www → CNAME → <your-service>.up.railway.app

Set both to DNS only (grey cloud) while Railway validates the domain.

Once DNS updates, Railway should validate automatically and both versions of the site will work.


Status changed to Solved ray-chen 13 days ago


Loading...