简体   繁体   中英

redirecting domain to nameservers in heroku?

I have configured my domain to heroku IPs 75.101.163.44 75.101.145.87 174.129.212.2

But it's not redirecting my app to my domain. The error says

There is no app configured at that hostname. Perhaps the app owner has renamed it, or you mistyped the URL.

Does each Heroku app have its own IP address? If so how to get the unique IP and how to redirect it to domain. Thanks.

Just follow these instructions and use the (unfortunately no longer free) Zerigo DNS Add-On. It's pretty easy.

Heroku applications don't have a static IP address because they're distributed across nodes in Heroku's dyno grid.

After following these instructions: https://devcenter.heroku.com/articles/custom-domains You can point your DNS servers to Heroku via the following method:

  1. Say you are using something like Gandi.net (or GoDaddy, BlueHost, etc. they should all have similar components). Go to your Gandi console and go to your domain You want to create a new zone file , since you can't edit a zone file that your domain is already using. So clone an existing zone file and click to edit it, if need be.

  2. In the record with name:www and type: CNAME, change the Value to [yourherokuapp].herokuapp.com , whereby [yourherokuapp] is given to you after you do a git push heroku master or heroku create

  3. Delete the record with name:@ and type: A

  4. Add three entries:

    • Name:@, type: A, address/value: 75.101.163.44

    • Name:@, type: A, address/value: 75.101.145.87

    • Name:@, type: A, address/value: 174.129.212.2

Which are Heroku DNS addresses.

And that's that. Wait a few hours (or however long the TTL is), and check

host www.your_domain.com

from the shell to see what address it responds to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM