不同主机上的子域

发布于 2024-07-06 06:57:55 字数 1748 浏览 4 评论 0原文

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

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

发布评论

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

评论(3

我不咬妳我踢妳 2024-07-13 06:57:55

子域名是域名的一部分,就像转租公寓的一个房间一样。 必须在域的 DNS 上设置记录,例如

mydomain.example 的 IP 为 123.456.789.999,并由 Godaddy 托管。 子域

anothersite.mydomain.example

现在要获取该网站实际上位于另一台服务器上的

,然后登录 Godaddy 并添加 A 记录 dnsimple anothersite.mydomain.example 并将 IP 指向另一台服务器 98.22.11.11

就是这样。

A sub domain is part of the domain, it's like subletting a room of an apartment. A records has to be setup on the DNS for the domain e.g

mydomain.example has IP 123.456.789.999 and hosted with Godaddy. Now to get the sub domain

anothersite.mydomain.example

of which the site is actually on another server then

login to Godaddy and add an A record dnsimple anothersite.mydomain.example and point the IP to the other server 98.22.11.11

And that's it.

七婞 2024-07-13 06:57:55

您只需在 Godaddy 的 DNS 管理器中添加“A”记录即可。 在“A”记录中输入您来自 dreamhost 的 IP。

我知道这很有效,因为我也在做同样的事情。

You just need to add an "A" record in the DNS manager on Godaddy. In that "A" record put your IP from dreamhost.

I know this works since I'm doing the very same thing.

落花浅忆 2024-07-13 06:57:55

更新 - 我没有在 GoDaddy 启用 Total DNS,因为该域托管在 DiscountASP。 因此,我无法添加 A 记录,这就是 GoDaddy 只提供将我的子域转发到其他站点的原因。 我终于意识到我必须去DiscountASP添加A记录以指向DreamHost。 现在等待看看是否一切正常!

当然,使用臭IP! 我不知道为什么这没有为我注册。 我猜他们指向另一个网址的帮助文本示例让我失望了。

感谢两位的回复。 当我读到科比的第一反应时,我就“明白了”,但赛义夫将其提升了一个档次,并添加了更多细节。

谢谢!

UPDATE - I do not have Total DNS enabled at GoDaddy because the domain is hosted at DiscountASP. As such, I could not add an A Record and that is why GoDaddy was only offering to forward my subdomain to a different site. I finally realized that I had to go to DiscountASP to add the A Record to point to DreamHost. Now waiting to see if it all works!

Of course, use the stinkin' IP! I'm not sure why that wasn't registering for me. I guess their helper text example of pointing to another url was throwing me off.

Thanks for both of the replies. I 'got it' as soon as I read Bryant's response which was first but Saif kicked it up a notch and added a little more detail.

Thanks!

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