Answer the question
In order to leave comments, you need to log in
How to setup DNS records for root domain (2domains.ru) on heroku?
The second day I'm trying to set up DNS for heroku (root domain). The domain is registered at 2domains.ru.
I made an entry like www CNAME yourapp.herokuapp.com
And it works fine for www.example.ru but not for example.ru
Making an entry @ CNAME yourapp.herokuapp.com
fails because there are NS entries on reg.ru that can't be deleted and they conflict.
Heroku offers options with CNAME, ANAME, ALIAS, URL, and Forward, and none of them fit. CNAME - the reason is higher, the rest are not supported by 2domains.ru.
I've already seen answers to similar questions, but they are either creating an A record (which heroku does not currently support), or a URL or Forward, which does not support 2domains.
UPD1:
All I have to do is map my domain's @ and www to the heroku app. I have seen this done by simply creating CNAME records @ CNAME example.herokuapp.com and www CNAME example.herokuapp.com.
But in my case, CNAME conflicts with @ NS ns1.reg.ru and @ NS ns2.reg.ru records. And it's not clear to me why this solution worked, here in this article .
Answer the question
In order to leave comments, you need to log in
The heroku documentation in this case suggests that you register the application as www.example.om, and redirect from example.com to an external server, you can use the same reg.ru. Set up a redirect from example.com to www.example.com, and that's it.
When a CNAME record is made, a period is added to the end of the address.
try like thisyourapp.herokuapp.com.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question