CNAME flattening at root not working

Somewhat stumped. I am trying to get a root domain ( to point to using a CNAME. points to the actual IP using an A record. However, pinging fails to find the host.

I know the services are up as I can open and I have a redirect in place from root domain β†’ www on my server but unsure why the root domain isnt found?

Hi @user2591,

That does resolve for me:

$ dig +short

And it does redirect to www

$ curl -I
HTTP/1.1 301 Moved Permanently
Date: Sat, 07 Aug 2021 09:30:44 GMT
Content-Type: text/html
Connection: keep-alive
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/\/report\/v3?s=QVdGL%2F2Dmbdyyfeo5PrT9N1qiqVADd0JJEdq%2BQUH7AEXyJLeOtnubuiweUPoh2HWebn5i11oHY01XLDS5pXjsvVnQf6RJmrChcfli2GnqjlaOGu9frlaeJMF2Ses6Xi0aBcgiGk68So5jT%2ByvQ3mtlo3SQ%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 67af7ce9be86088b-CDG

That seems to work for me as well.

$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=55 time=62.7 ms
64 bytes from icmp_seq=2 ttl=55 time=62.7 ms
64 bytes from icmp_seq=3 ttl=55 time=119 ms
64 bytes from icmp_seq=4 ttl=55 time=51.3 ms
64 bytes from icmp_seq=5 ttl=55 time=37.6 ms

--- ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms

Many thank - you’re right, it must have just been some caching somewhere. Working now.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.