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

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

问题描述

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



谢谢...

解决方案

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



相同的服务器 - 并在相同的IP地址。

这就是Apache的VirtualHosts背后的主意,例如。$ /



一个域名可以对应几个不同的IP



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

  $ dig google.fr 

;;解答部分:
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



如需更多信息,您应该阅读以下维基百科条目: 域名系统


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...

解决方案

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.

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

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