每个域都有唯一的 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?
Thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
否:每个域没有自己的 IP 地址。
多个域可以托管在同一台服务器上,并且位于同一 IP 地址上。
例如,这就是 Apache VirtualHosts 背后的想法。
并且一个域名可以对应多个不同的IP地址。
例如,在
dig
命令code>google.fr 域,您会得到(我只复制粘贴了输出的一部分):有关更多信息,您可能应该阅读以下维基百科条目:域名系统。
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 thegoogle.fr
domain, you'd get (I only copy-pasted a portion of the output) :For more informations, you should probably read the following wikipedia entry : Domain Name System.
不。
存在具有多个 IP 的域和具有多个域的 IP。
它们不位于任何地方,它们是某些计算机的抽象地址
您指的是哪个重定向系统?
No.
There are domains with more than one IP and IPs with more than one domain.
They are not located anywhere, they are an abstract address of some computer(s)
Which redirection system do you mean?
并非每个域地址都有唯一的 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.
不,每个域不需要有自己分配的 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