For faster navigation, this Iframe is preloading the Wikiwand page for .localhost.

.localhost

localhost
推出日期1999
顶级域类型保留的顶级域
预期使用识别本地主机
相关文件RFC 2606

.localhost域名是由互联网工程任务组(IETF)在RFC 2606 (1999年6月)文件中规定在互联网域名系统(DNS)中所被保留的不被安装为顶级域的域名标签。 [1]

保留DNS名称

[编辑]

互联网工程任务组于1999年保留了 localhost、exampleinvalidtest四个域名标签,以免被安装入域名系统中的根区(root zone)。

之所以要保留这些顶级域是为了减少发生冲突和混淆的可能性。这限制了这些名称只能用于文档或本地测试场景之中。

常规用法

[编辑]

localhost在大多数TCP/IP系统中常被定义为环回接口,对于IPv4中解析到IP地址127.0.0.1 ,IPv6中则是::1 。作为一个顶级域,此名称习惯上用于主机的DNS实现与地址记录(A和AAAA),并指向相同的环回地址。其他的任何使用都与依赖于该协定的广泛部署的算法相冲突。

参考文献

[编辑]
  1. ^ RFC 2606 (BCP 32), Reserved Top Level DNS Names, D. Eastlake, A. Panitz, The Internet Society (June 1999)
{{bottomLinkPreText}} {{bottomLinkText}}
.localhost
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?