每个域都有唯一的 IP 吗? [英] Does every domain have unique IPs?

查看:17
本文介绍了每个域都有唯一的 IP 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否每个域地址都有唯一的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?

谢谢...

推荐答案

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

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

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

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.


一个域名可以对应多个不同的IP地址.


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

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

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


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

这篇关于每个域都有唯一的 IP 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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