Answer the question
In order to leave comments, you need to log in
How to bind a domain to a heroku app?
There is a domain on hostline. Unable to bind to heroku app. What settings should be specified in the domain?
Answer the question
In order to leave comments, you need to log in
I'm assuming you've already mapped the domains in heroku either through the terminal or the web interface.
If so, then you need to configure DNS records as follows:
name.ru IN A 50.19.85.156
name.ru IN A 50.19.85.154
name.ru IN A 50.19.85.132
www.name.ru IN CNAME name.ru
where:
name .ru is your site.
The A-records for your domain need to be set to the IP addresses provided by heroku;
CNAME records for your domain with www must be set to your same domain, but without www;
After that, you need to wait until the DNS is updated. Different hosters have different ways - usually it takes from 5 minutes to 12 hours.
PS You can see the IP addresses of heroku by running the command in the terminal:
host www.name.ru
To bind a domain name to an application on heroku , you need to add an entry to the DNS
To do this, you need to use the DNS editor if hostline has one. If there is no editor, bind your domain to a free DNS hosting, for example Yandex (pdd.yandex.ru) using addresses like dns1.yandex.net dns2.yandex.net and add the corresponding CNAME record through the Yandex interface.
@ - means any request to this domain ( *.yourdomain.ru ) will lead to the specified herokuapp.com
Next, run the following command through the console:
heroku domains:add yourdomain.ru --app yourappname
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question