【问题标题】:How does a browser distinguish whether the address in the address bar is an IP address or a Host name?浏览器如何区分地址栏中的地址是IP地址还是主机名?
【发布时间】:2014-11-08 21:12:25
【问题描述】:

假设您在浏览器地址栏中键入一个 ip 地址,例如 123.456.7.8/sth.html。 那么浏览器如何区分地址栏中的地址是IP地址(如上所述)还是主机名?

【问题讨论】:

    标签: browser dns ip


    【解决方案1】:

    “还有一条附加规则,本质上要求顶级域名不能是全数字的。” http://en.wikipedia.org/wiki/Domain_Name_System#Domain_name_syntax

    因此,如果 123.456.7.8 是域名,则 TLD 将为“8”,这是不可接受的,因为它是数字。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-15
      • 2014-12-19
      • 2014-12-02
      相关资源
      最近更新 更多