Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
The community reviewed whether to reopen this question last year and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
子域名是域名的一部分,就像转租公寓的一个房间一样。 必须在域的 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 domainanothersite.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.11And that's it.
您只需在 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.
更新 - 我没有在 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!