CNAME flattening at root not working

Somewhat stumped. I am trying to get a root domain (niftycraftroom.co.uk) to point to ncr.rndthoughts.co.uk using a CNAME. ncr.rndthoughts.co.uk 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 www.niftycraftroom.co.uk 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 niftycraftroom.co.uk +short
172.67.156.128
104.21.7.225

And it does redirect to www

$ curl -I niftycraftroom.co.uk
HTTP/1.1 301 Moved Permanently
Date: Sat, 07 Aug 2021 09:30:44 GMT
Content-Type: text/html
Connection: keep-alive
location: http://www.niftycraftroom.co.uk/
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/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 niftycraftroom.co.uk
PING niftycraftroom.co.uk (104.21.7.225) 56(84) bytes of data.
64 bytes from 104.21.7.225: icmp_seq=1 ttl=55 time=62.7 ms
64 bytes from 104.21.7.225: icmp_seq=2 ttl=55 time=62.7 ms
64 bytes from 104.21.7.225: icmp_seq=3 ttl=55 time=119 ms
64 bytes from 104.21.7.225: icmp_seq=4 ttl=55 time=51.3 ms
64 bytes from 104.21.7.225: icmp_seq=5 ttl=55 time=37.6 ms

--- niftycraftroom.co.uk 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.