主机名中下划线的使用 [英] The use of the underscore in host names

查看:49
本文介绍了主机名中下划线的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

维基百科声明下划线在主机名中被 Android 和 Microsoft Windows 系统使用.我的问题是,这些主机名是什么?你有这些奇怪的主机名的例子以及它们的用途吗?

Wikipedia states that underscores are used by both Android and Microsoft Windows Systems in hostnames. My question is, what are these host names? Do you have examples of these strange hostnames names and what they are used for?

推荐答案

什么是主机名?

类似于学校教室,每个学生都有一个卷号/ID,以便在互联网(或就此而言,任何计算机网络)的教室中的每个设备进行识别需要唯一标识网络中的那些.这是通过主机名完成的.因此,主机名是有助于识别网络中设备的名称.

Analogous to a school class room where each student has a roll number/id so that he/she is identified, in the class room of Internet (or for that matter any computer network) each device that are in the network needs to be uniquely identified. This is done via a Host Name. Thus hostnames are names that helps in identifying devices in a network.

带有下划线 (_) 字符的主机名.

在为有效和无效的主机名制定标准期间,通用终端接口是电传打字机 (TTY) ASR-33 的键盘.现在这个键盘从来没有下划线(_)键(检查这张图片http://www.pdp8.net/asr33/pics/kbd_top.shtml?large),因此不可能有一个带有下划线 (_) 的 hostname.查看此链接了解更多详情:http://www.quora.com/Domain-Name-System-DNS/Why-are-underscores-not-allowed-in-DNS-host-names

During the period when the standards were being laid for the valid and invalid hostnames, the common terminal interface was the keyboard of the Teletype (TTY) ASR-33. Now this keyborad never had a underscore(_) key in it (check this pic http://www.pdp8.net/asr33/pics/kbd_top.shtml?large) and hence it was not possible to have a hostname with an underscore(_) in it. Check this link for more details: http://www.quora.com/Domain-Name-System-DNS/Why-are-underscores-not-allowed-in-DNS-host-names

域名中可以使用下划线(_)字符.正如这篇文章所述 (域名)子域可以有下划线_"在其中? 有一个下划线是完全有效的.一些示例(如帖子中所示)是 _jabber._tcp.gmail.com_sip._udp.apnic.net.另一个使用下划线的例子见这里 http://ideaharbor.org/notes/technical/enabling-chat-outside-google-apps.尽管使用下划线是有效的,但它不是推荐的做法.

Underscore(_) character can be used in the domain names. As this post states Can (domain name) subdomains have an underscore "_" in it? it is completely valid to have an underscore. Some examples(as shown in the post) are _jabber._tcp.gmail.com or _sip._udp.apnic.net. Another example of usage of an underscore is seen here http://ideaharbor.org/notes/technical/enabling-chat-outside-google-apps. Though its valid to use underscores it not a recommended practice.

您帖子中的维基百科链接指出,Microsoft Windows 和 Android 智能手机没有强制执行禁止在主机名中使用下划线的规则.不执行此规则可能会导致问题,因为许多系统拒绝此类主机名.

The wikipedia link in your post states that Microsoft Windows and Android smartphones does not enforce the rule against using an underscore in hostnames. Non enforcement of this rule may result in problems because many systems reject such kind of hostnames.

希望你从这个解释中有所收获.

Hope you get something out of this explanation.

编辑

在对该问题的进一步调查中,我发现了这篇精彩的帖子,我想它阐明了主机名中下划线的用法:

On further investigation on the issue, I came upon this wonderful post which I suppose clarifies the usage of underscore in hostnames:

http://networkadminkb.com/KB/a156/windows-2003-dns-and-the-underscore.aspx

这篇关于主机名中下划线的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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