I have a NodeJS application hosted on Heroku and I’m using Cloudflare to handle my DNS settings.
Unfortunately, the root domain for my application won’t resolve since I don’t have CNAME record pointing to it and correspondingly, I also receive the following error on my Cloudflare dashboard:
"An A, AAAA or CNAME record was not found pointing to the root domain. The XXXX.com domain will not resolve".
I found the relevant documentation for Heroku-hosted apps (shown below) which explains that all I need to do is to add a CNAME record for my root and point it to the server name. (It also states why I can’t point it to a static IP address)
My problem is - how do I add a CNAME record pointing to the server name when the field I’m supposed to add the server name to only accepts an IP address?
Thanks for the suggestion but I just gave that a shot and I’m still not able to put anything other than a static IP address in the field where I should enter the server name
How about…some other CNAME? Start with a CNAME for ‘blog’ and point it to ‘example.blogspot.com’. Yes, use those exact entries…just to see if CNAME is broken for you or not.
It may be a browser issue. As soon as I switch to CNAME, the input field immediately changes to “Domain name”. I see yours is stuck on IPv4 Address, like it’s waiting for an A record. Try clearing your browser’s cache and/or switch to a different browser.