redirecting domain to nameservers in heroku?

前端 未结 2 1943
予麋鹿
予麋鹿 2021-02-04 17:05

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 i

相关标签:
2条回答
  • 2021-02-04 18:00

    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.

    0 讨论(0)
  • 2021-02-04 18:00

    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.

    0 讨论(0)
提交回复
热议问题