I want to forward my root domain(yourdomain.com) to www.yourdomain.com Should I delete the A record of the root domain and then setup 301 permanent forwarding to www.yourdomain.com?
I am hosting my app on heroku. So I don't really have an IP address to setup an A record.
The thing is I first deleted the A record of my root domain and then forwarded it. I pinged it and here is the result -
ping yourdomain.com ping: cannot resolve yourdomain.com: Unknown host
Update and some more information - I am hosting a static website. And managing the DNS on cloudflare.com I added an A record for yourdomain.com -> 184.108.40.206 Just an random IP.