将多个域链接到服务器
我有一台已经有域的服务器,比如说 mysite.com,但我想在其上放置另一个具有域 mysite2.com 的网站。
所以我的问题是,我如何设置名称服务器设置......我列出的第一个域
ns1.mysite.com
ns2.mysite.com
那么如果我使用:
ns1.mysite2.com
ns2.mysite2.com
用于我的新网站,它会起作用吗?
另外,我必须设置“粘合记录”。这些是来自名称服务器的 ns1 和 ns2,并提供我的服务器的 IP。那么对于 mysite2.com 我会使用 ns1.mysite2.com 然后 IP 例如 111.111.111.111/MYSITE2 吗?因为第一个站点的粘合记录只是111.111.111.111......?
希望这不会令人困惑,我只是对这些东西不熟悉,想更好地理解它,而且我不想弄乱我原来的网站。
感谢您的帮助。
I have a server that already has a domain, lets say mysite.com but i want to put another site on it with the domain mysite2.com.
So my questions are, how do i set up the nameserver settings.... My first domain i have listed
ns1.mysite.com
ns2.mysite.com
So would it work if i used:
ns1.mysite2.com
ns2.mysite2.com
for my new site?
Also, i have to set up "glue records". These are the ns1 and ns2 from the nameserver and provide the ip of my server. So for the mysite2.com would i use ns1.mysite2.com and then the ip would be for example 111.111.111.111/MYSITE2 ? Because the glue record for the first site is just 111.111.111.111.....?
Hope this isn't to confusing, i'm just new to this stuff and want to understand it a bit better and i don't want to mess my original site up in anyway.
thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的 DNS 记录不必与其托管的域位于同一域中。如果您运行自己的 DNS 服务器,它们可以位于您的主域内。但如果您使用其他 DNS 提供商(例如 zoneedit.com 或 easydns.com),则只需使用他们提供的主机名即可。
“粘合记录”是 NS 指针,可让根服务器找到特定域的 DNS 服务器。例如,可能是:
请注意,这与您域的网站的服务位置完全不同。为此,您只需为每个域配置 DNS,以便“www”主机(也可能是域本身)的 IP 地址指向相同的 IP...然后您阅读 Web 服务器软件的文档,了解如何设置“命名虚拟主机”。
您清楚 DNS 托管和 Web 托管之间的区别吗?如果没有,我可以讲得更详细。
Your DNS records don't have to be within the same domain as the one they host. If you are running your own DNS servers, they can live inside your primary domain. But if you're using another DNS provider like zoneedit.com or easydns.com, just use the hostnames they provide.
"Glue records" are the NS pointers that let the root servers find the DNS servers for a particular domain. For example, there might be:
Note that this is entirely different from where your domain's web site is served. For that, you just configure the DNS for each of these domains so that the IP address for the "www" host (and probably the domain itself) points to the same IP ... then you read your web server software's documentation on how to set up "named virtualhosts".
Are you clear on the distinction between DNS hosting and web hosting? If not, I can go into more detail.