A
A
Andrey Zanovsky2016-05-04 18:35:34
Domain Name System
Andrey Zanovsky, 2016-05-04 18:35:34

How to link a domain to heroku?

Hello.
There is a domain on 2domains and a server on heroku (the one that is free, free).
Heroku doesn't give an IP (or I didn't find one), but it does have a DNS Target like site.herokuapp.com. The site is available at this address.
Herok writes "Supply this to your DNS provider for the destination of CNAME or ALIAS records."
i created the following entries:
* CNAME site.herokuapp.com
www CNAME site.herokuapp.com
but
@CNAME site.herokuapp.com is not created because CNAME is a record type that conflicts with any other record types if another type of record already exists for the subdomain being searched. For @ by default, there are reference NS records that cannot be removed because they define domain delegation. It is with NS records that CNAME conflicts, and therefore a CNAME for @ cannot be added.
And in my case, all subdomains are linked and www.site.ru too, but site.ru redirects to www.site.ru.
How to be in this case?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Zhivotnev, 2016-05-04
@inkvizitor68sl

No way.
Or look for paid hosting with support for crutches, for some it was called ANAME. Or do it on your own powerdns.

E
Eugene Burmakin, 2016-05-04
@Freika

1. Attach the domain to Cloudflare
2. Set Cloudflare DNS for the domain to have a setting that will make your domain an alias for app.herokuapp.com
3. ....
4. PROFIT

S
sim3x, 2016-05-04
@sim3x

https://devcenter.heroku.com/articles/custom-domains
https://elements.heroku.com/addons/pointdns

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question