我有一个在Heroku服务器上托管的免费套餐服务。我正在添加从BigRock购买的自定义域名。
在Heroku中添加自定义域时,它给了我一个DNS Target
-
abc-def-somelongstring.herokudns.com
。
然后我去管理BigRock的控制台并尝试添加名称服务器并将上述目标粘贴到名称服务器2输入字段。但这是一个错误。
NameServer abc-def-jvxgdae599y1e3ftm3bijxxc.herokudns.com不是有效的名称服务器
我与BigRock支持团队聊天,他们说名称服务器的格式不正确。
由于它是一个免费的层,Heroku不会让我打开支持票。请帮忙。我是初学者,所以真的不知道这里有什么问题?
该值不是名称服务器;它只是一个域名。期望您在其他地方拥有DNS,例如与您购买域名的公司,以及您在那里配置指向Heroku域名的记录。
在BigRock DNS控制面板中,添加指向Heroku为您提供的域的CNAME
记录。例如,您可以从CNAME
设置www.yourdomain.com
记录,其值为abc-def-jvxgdae599y1e3ftm3bijxxc.herokudns.com
。
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).
您可能正在使用带掩码的域转发