我有一个托管在Heroku服务器上的免费服务应用程序。我正在添加一个从BigRock购买的自定义域。
在Heroku中添加自定义域时,它会给我一个DNS Target
-
abc-def-somelongstring.herokudns.com
。
然后我去管理BigRock的控制台,尝试添加名称服务器,并将上面的目标粘贴到名称服务器2输入字段中。但这是个错误。
abc-def-jvxgdae599y1e3ftm3bijxxc.herokudns.com NameServer不是有效的名称服务器。
我和BigRock支持小组聊了聊,他们说(名称服务器的格式)是不正确的。
因为它是免费的,所以Heroku不让我打开一张支持票。请帮帮忙。我是初学者,所以真的不知道这里出了什么问题?
发布于 2019-04-16 06:31:09
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).
发布于 2019-04-14 14:01:42
该值不是名称服务器;它只是一个域。您的期望是您有您的DNS在其他地方,例如与您从公司购买的域名,并您配置一个记录指向Heroku域。
在BigRock DNS控制面板中,添加指向Heroku给您的域的CNAME
记录。例如,您可以从值为CNAME
的www.yourdomain.com
设置一个abc-def-jvxgdae599y1e3ftm3bijxxc.herokudns.com
记录。
发布于 2019-04-16 16:47:28
您可能正在使用带掩蔽的域转发。
https://stackoverflow.com/questions/55672811
复制相似问题