将多个域链接到服务器

发布于 2024-12-29 21:38:42 字数 501 浏览 2 评论 0原文

我有一台已经有域的服务器,比如说 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 技术交流群。

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

发布评论

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

评论(1

他不在意 2025-01-05 21:38:42

您的 DNS 记录不必与其托管的域位于同一域中。如果您运行自己的 DNS 服务器,它们可以位于您的主域内。但如果您使用其他 DNS 提供商(例如 zoneedit.com 或 easydns.com),则只需使用他们提供的主机名即可。

“粘合记录”是 NS 指针,可让根服务器找到特定域的 DNS 服务器。例如,可能是:

mysite.com    NS    dns1.example.com
mysite.com    NS    dns2.example.com
mysite2.com   NS    dns1.example.com
mysite2.com   NS    dns2.example.com

请注意,这与您域的网站的服务位置完全不同。为此,您只需为每个域配置 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:

mysite.com    NS    dns1.example.com
mysite.com    NS    dns2.example.com
mysite2.com   NS    dns1.example.com
mysite2.com   NS    dns2.example.com

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.

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