为什么不同的 Google 服务具有相同的 IP 地址?
Why different Google services has the same IP address?
我开始研究 DNS 系统及其工作方式。我在 ubuntu 上使用 dig
来解决一些域名问题,我正在尝试使用不同的 Google 服务。
即使服务完全不同,碰巧我收到了相同的IP地址。
$ dig docs.google.com
;; ANSWER SECTION:
docs.google.com. 264 IN A 216.58.198.14
和
$ dig drive.google.com
;; ANSWER SECTION:
docs.google.com. 264 IN A 216.58.198.14
在其他情况下,我收到了相同的地址,试图解决 mail.google.com
或 maps.google.com
等更多服务。
任何人都可以帮助我并向我解释它的工作方式吗?这跟时间有关系吗?
非常感谢。
首先docs.google.com和drive.google.com是不同的域
是的,不同的域可以有相同的 IP 地址。这称为共享虚拟主机。
In name-based virtual hosting, also called shared IP hosting, the virtual hosts serve multiple hostnames on a single machine with a single IP address. This is possible because when a web browser requests a resource from a web server using HTTP/1.1 it includes the requested hostname as part of the request. The server uses this information to determine which web site to show the user. When you register/purchase your domain name on a particular "registrars name server", your DNS settings are kept on their server, and in most cases point your domain to the Name Server of your hosting provider. This Name Server is where the IP number (currently associated with your domain name) resides.
我开始研究 DNS 系统及其工作方式。我在 ubuntu 上使用 dig
来解决一些域名问题,我正在尝试使用不同的 Google 服务。
即使服务完全不同,碰巧我收到了相同的IP地址。
$ dig docs.google.com
;; ANSWER SECTION:
docs.google.com. 264 IN A 216.58.198.14
和
$ dig drive.google.com
;; ANSWER SECTION:
docs.google.com. 264 IN A 216.58.198.14
在其他情况下,我收到了相同的地址,试图解决 mail.google.com
或 maps.google.com
等更多服务。
任何人都可以帮助我并向我解释它的工作方式吗?这跟时间有关系吗?
非常感谢。
首先docs.google.com和drive.google.com是不同的域
是的,不同的域可以有相同的 IP 地址。这称为共享虚拟主机。
In name-based virtual hosting, also called shared IP hosting, the virtual hosts serve multiple hostnames on a single machine with a single IP address. This is possible because when a web browser requests a resource from a web server using HTTP/1.1 it includes the requested hostname as part of the request. The server uses this information to determine which web site to show the user. When you register/purchase your domain name on a particular "registrars name server", your DNS settings are kept on their server, and in most cases point your domain to the Name Server of your hosting provider. This Name Server is where the IP number (currently associated with your domain name) resides.