无法在 BigRock 中添加 Heroku DNS 目标



我在免费层服务的 Heroku 服务器上托管了一个应用程序。我正在添加从 BigRock 购买的自定义域。

在 Heroku 中添加自定义域时,它给了我一个DNS Target -

abc-def-somelongstring.herokudns.com .

然后我去了 BigRock 的管理控制台并尝试添加名称服务器并将上述目标粘贴到名称服务器 2 输入字段中。但它抛出了一个错误。

名称服务器 abc-def-jvxgdae599y1e3ftm3bijxxc.herokudns.com 不是有效的名称服务器

我与BigRock支持团队进行了交谈,他们说名称服务器的格式不正确。

由于它是免费套餐,Heroku 不让我打开支持票证。请帮忙。我是初学者,所以真的不知道这里出了什么问题?

The value you entered can be used as cname not as name server because  it is domain url.Just to point site to heroku you have 2 options :
1.CNAME: Add the domain to your heroku app => heroku domains:add domainname
Go to your domain service provider account and update/add a "www" CName DNS record and point it to your heroku app (e.g. appname.herokuapp.com)

2.PointDNS: This is addin available on heroku which can help in pointing site to heroku hosting.Steps to use pointDNS in you application hjosted on heroku :
Add the domain to your heroku app => heroku domains:add domainname
    Go to resources-> add `PointDNS` addon,
    a.Verify by clicking on pointDNS
    b.Copy all NS records from bigrock to pointDNS
    c.Update NS issued by pointDNS (dns8.pointhq.com,dns12.pointhq.com) in bigrocks

Note: If you are ever going to add ssl on your website, then you need to move your dns records to heroku with pointDNS(addon available on heroku - free for 1 domain and 20 dns records).

该值不是名称服务器;它只是一个域。期望您在其他地方拥有DNS,例如与您购买域的公司,并且您在那里配置指向Heroku域的记录。

在 BigRock DNS 控制面板中,添加一个指向 Heroku 为您提供的域的CNAME记录。例如,您可以从值为 abc-def-jvxgdae599y1e3ftm3bijxxc.herokudns.comwww.yourdomain.com中设置CNAME记录。

您可能正在使用带有屏蔽功能的域转发

最新更新