擅长:python、mysql、java
<p>主机名通过一个叫做DNS服务器的东西被转换成IP地址。在web浏览器中键入名称或使用程序(如ping)时,您提供的主机名(谷歌网站)最终到达该域的权威DNS服务器,与实际内容对应的服务器分离。你知道吗</p>
<p>你知道吗谷歌网站有多个不同的服务器可以响应数据请求。根据您用于生成请求的不同程序的实现以及其他因素(如发出请求时的网络流量),来自同一主机的多个请求可能会被权威DNS服务器定向到不同的服务器。这是通过向您的计算机返回不同的IP地址来实现的。你知道吗</p>
<p>FWIW,ping和socket.gethostbyname()用于谷歌网站在我的机器上解析为216.58.217.14,运行OS X Yosemite。你知道吗</p>