'www' CNAME 无法正确解析,但根 A 记录工作正常(对于 Heroku)

发布于 2024-10-31 10:10:11 字数 1173 浏览 1 评论 0原文

我在使用 WHM/Cpanel 为我的 heroku 应用程序设置 CNAME 记录时遇到问题。

我已按如下方式设置记录 - 查看图像链接

dapcards.com 正在解析 Heroku 应用程序,没有任何问题。

但是,www.dapcards.com 失败:

> host dapcards.com
dapcards.com has address 75.101.145.87
dapcards.com has address 75.101.163.44
dapcards.com has address 174.129.212.2
dapcards.com mail is handled by 0 dapcards.com.
> host www.dapcards.com
Host www.dapcards.com not found: 3(NXDOMAIN)
Host www.dapcards.com not found: 3(NXDOMAIN)

当我使用 dnsstuff.com 工具时,它似乎可以很好地访问 proxy.heroku.com,但会产生错误:

[BOGUS ANSWER: This server is not authoritative for proxy.heroku.com.: 
it refers back to the root servers]

http://www.dnsstuff.com/tools/legacy/?formaction=DNSLOOKUP&ToolFormName=customlookup&name=www.dapcards.com&r=235660&detail=0&type=CNAME

我显然在这里遗漏了一些东西。有人有什么想法吗?非常感谢一些建议!

干杯, 抢

I'm having trouble using WHM/Cpanel to set up CNAME records for my heroku app.

I've set up the records as follows - see link to image.

dapcards.com is resolving to the heroku app with no problems.

However, www.dapcards.com fails:

> host dapcards.com
dapcards.com has address 75.101.145.87
dapcards.com has address 75.101.163.44
dapcards.com has address 174.129.212.2
dapcards.com mail is handled by 0 dapcards.com.
> host www.dapcards.com
Host www.dapcards.com not found: 3(NXDOMAIN)
Host www.dapcards.com not found: 3(NXDOMAIN)

When I use the dnsstuff.com tool, it seems to get to proxy.heroku.com fine, but produces an error:

[BOGUS ANSWER: This server is not authoritative for proxy.heroku.com.: 
it refers back to the root servers]

http://www.dnsstuff.com/tools/legacy/?formaction=DNSLOOKUP&ToolFormName=customlookup&name=www.dapcards.com&r=235660&detail=0&type=CNAME

I'm obviously missing something here. Has anyone got any ideas? Would really appreciate some advice!

Cheers,
Rob

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一杆小烟枪 2024-11-07 10:10:11

也许您没有等待 DNS 传播足够长的时间?这里看起来不错:

$ host www.dapcards.com
www.dapcards.com is an alias for proxy.heroku.com.
proxy.heroku.com has address 50.16.233.102
proxy.heroku.com has address 174.129.212.2
proxy.heroku.com has address 75.101.145.87
$ host dapcards.com
dapcards.com has address 75.101.145.87
dapcards.com has address 75.101.163.44
dapcards.com has address 174.129.212.2
dapcards.com mail is handled by 0 dapcards.com.

Perhaps you didn't wait long enough for DNS to propagate? Looks fine here:

$ host www.dapcards.com
www.dapcards.com is an alias for proxy.heroku.com.
proxy.heroku.com has address 50.16.233.102
proxy.heroku.com has address 174.129.212.2
proxy.heroku.com has address 75.101.145.87
$ host dapcards.com
dapcards.com has address 75.101.145.87
dapcards.com has address 75.101.163.44
dapcards.com has address 174.129.212.2
dapcards.com mail is handled by 0 dapcards.com.
ゃ懵逼小萝莉 2024-11-07 10:10:11

我刚刚在浏览器中访问了您的网站 www.dapcards.com 和 dapcards.com,该网站呈现良好:)

I just accessed your website unter both www.dapcards.com and dapcards.com in my browser and the site renders fine :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文