每个域都有唯一的 IP 吗?

发布于 2024-10-24 19:07:36 字数 98 浏览 4 评论 0原文

我想知道每个域名地址是否都有唯一的IP地址? 此外,这些IP位于哪里?这个重定向系统是如何工作的? 当我们尝试通过写入域名来访问网站时,它有多少个重定向?

谢谢...

I want to know whether every domain adress has a unique IP adress?
Furthermore, where these IP's are located? and how does this redirection system works?
When we try to access a web site by writing domain name how many redirections does it have?

Thanks...

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

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

发布评论

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

评论(4

醉梦枕江山 2024-10-31 19:07:36

否:每个域没有自己的 IP 地址。

多个域可以托管在同一台服务器上,并且位于同一 IP 地址上。
例如,这就是 Apache VirtualHosts 背后的想法。

并且一个域名可以对应多个不同的IP地址。

例如,在 dig 命令code>google.fr 域,您会得到(我只复制粘贴了输出的一部分)

$ dig google.fr

;; ANSWER SECTION:
google.fr.              71      IN      A       74.125.230.81
google.fr.              71      IN      A       74.125.230.82
google.fr.              71      IN      A       74.125.230.83
google.fr.              71      IN      A       74.125.230.84
google.fr.              71      IN      A       74.125.230.80

有关更多信息,您可能应该阅读以下维基百科条目:域名系统

No : each domain does not have its own IP address.

Several domains can be hosted on the same server -- and on the same IP address.

That's the idea behind Apache's VirtualHosts, for example.

And one domain-name can correspond to several distinct IP addresses.

For example, using the dig command on the google.fr domain, you'd get (I only copy-pasted a portion of the output) :

$ dig google.fr

;; ANSWER SECTION:
google.fr.              71      IN      A       74.125.230.81
google.fr.              71      IN      A       74.125.230.82
google.fr.              71      IN      A       74.125.230.83
google.fr.              71      IN      A       74.125.230.84
google.fr.              71      IN      A       74.125.230.80

For more informations, you should probably read the following wikipedia entry : Domain Name System.

无人问我粥可暖 2024-10-31 19:07:36

我想知道每个域名地址是否都有唯一的IP地址?

不。
存在具有多个 IP 的域和具有多个域的 IP。

此外,这些IP位于哪里?

它们不位于任何地方,它们是某些计算机的抽象地址

这个重定向系统是如何工作的?
当我们尝试通过写入域名来访问网站时,它有多少个重定向?

您指的是哪个重定向系统?

I want to know whether every domain adress has a unique IP adress?

No.
There are domains with more than one IP and IPs with more than one domain.

Furthermore, where these IP's are located?

They are not located anywhere, they are an abstract address of some computer(s)

and how does this redirection system works?
When we try to access a web site by writing domain name how many redirections does it have?

Which redirection system do you mean?

腻橙味 2024-10-31 19:07:36

并非每个域地址都有唯一的 IP。同一 IP 上可能存在多个域地址。例如,每个域都有 DNS,这些 DNS 指向重定向不同域(使用虚拟主机)的服务器。

Not every domain address has unique IP. There may be more than one domain addresses on same IP. Every domain have DNS and these DNS pointing to server who redirect different domains (with virtual hosts) for exampple.

白龙吟 2024-10-31 19:07:36

不,每个域不需要有自己分配的 IP 地址。 IP 物理上可以位于任何地方。重定向通常是通过用户代理按照 HTTP 指令完成的。

请参阅

http://en.wikipedia.org/wiki/Domain_Name_System

http://en.wikipedia.org/wiki/HTTP

No, each domain doesn't need to have its own allocated IP address. IPs can be physically located anywhere. Redirection is usually done via user agents following HTTP instructions.

See

http://en.wikipedia.org/wiki/Domain_Name_System

http://en.wikipedia.org/wiki/HTTP

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