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

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

问题描述

维基百科指出,强调在主机名使用的Andr​​oid和微软的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键盘。现在,这keyborad从来没有在这一个下划线(_)键(检查这个PIC <一个href="http://www.pdp8.net/asr33/pics/kbd_top.shtml?large">http://www.pdp8.net/asr33/pics/kbd_top.shtml?large)因此它是不可能有一个主机名在它的下划线(_)检查此链接了解更多详情:<一href="http://www.quora.com/Domain-Name-System-DNS/Why-are-underscores-not-allowed-in-DNS-host-names">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

下划线(_)字符可以在域名中使用。由于这个职位状态<一href="http://stackoverflow.com/questions/2180465/can-someone-have-a-subdomain-with-an-underscore-in-it">Can有人有下划线&QUOT一个子域; _&QUOT;在里面?的是完全有效的有下划线。一些例子(如在后)的 _jabber._tcp.gmail.com _sip._udp.apnic.net 。下划线的使用的另一例子是在这里看到<一href="http://ideaharbor.org/notes/technical/enabling-chat-outside-google-apps">http://ideaharbor.org/notes/technical/enabling-chat-outside-google-apps.虽然其有效使用强调它不是一个推荐的做法。

Underscore(_) character can be used in the domain names. As this post states Can someone have a subdomain with 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.

在您的帖子国维基百科的链接,微软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:

<一个href="http://networkadminkb.com/KB/a156/windows-2003-dns-and-the-underscore.aspx">http://networkadminkb.com/KB/a156/windows-2003-dns-and-the-underscore.aspx

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

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