不同主机上的子域 [英] Subdomain on different host

查看:93
本文介绍了不同主机上的子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试与其他托管公司托管网站的子域,但是在设置方面却遇到了问题.

I'm trying to host a subdomain for my site with a different hosting company and I'm running into issues on how to set it up.

以下是详细信息: -域已在GoDaddy中注册. -名称服务器指向DiscountASP.net,其中ASP.NET应用程序已经愉快地运行了两年. -希望blog.mydomain.com指向我在DreamHost.com上的帐户,以利用其LAMP堆栈.

Here are the specifics: - Domain is registered with GoDaddy. - Nameservers are pointing to DiscountASP.net where ASP.NET app has been happily running for couple of years. - Would like blog.mydomain.com to point to my account with DreamHost.com to take advantage of their LAMP stack.

我已通过其控制面板将blog.mydomain.com添加到DreamHost(添加mydomain.com之后).我以为我可以在GoDaddy上添加一个指向DreamHost的子域条目,但它们所允许的只是blog.mydomain.com =新网址.

I have added blog.mydomain.com to DreamHost (after adding mydomain.com) via their control panel. I thought I would be able to add a subdomain entry on GoDaddy to point to DreamHost, but all they allow is blog.mydomain.com = new url.

从理论上讲,我可以将我们的.biz或.net域托管在DreamHost上,但希望我可以使用子域来完成所有工作.

In theory I could just take our .biz or .net domain and host it on DreamHost but was hoping I could do it all with a subdomain.

因此,总而言之,我想知道我想做的事是否可行,如果可行,我该如何做(考虑到GoDaddy,DiscountASP和amp; DreamHost的限制).

So, to summarize I'd like to know if what I want to do is feasible and if so, how do I go about it (given the constraints of GoDaddy, DiscountASP, & DreamHost).

推荐答案

子域是该域的一部分,就像在出租公寓的房间一样.必须在域名的dns上设置记录,例如

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.com拥有IP 123.456.789.999,并由Godaddy托管.现在要获取子域

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

anothersite.mydomain.com

anothersite.mydomain.com

该站点实际上位于另一台服务器上

of which the site is actually on another server then

登录Godaddy并添加 A记录 dnsimple anothersite.mydomain.com并将IP指向其他服务器98.22.11.11

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

就是这样.

这篇关于不同主机上的子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆