子域中允许使用哪些字符? [英] What are the allowed characters in a subdomain?

查看:59
本文介绍了子域中允许使用哪些字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在子域中使用哪些字符?

What characters are you allowed to use in a subdomain?

示例:对于 someSub.example.comsomeSub 部分.

Example: for someSub.example.com the someSub portion.

我知道您可以使用字母、数字和连字符,但其他字符呢?可以使用_(下划线)吗?

I know you can use letters, numbers, and hyphens, but what about other characters? Can _ (underscore) be used?

推荐答案

字母(重读 à 除外)、数字 0-9 和连字符.

Letters (except stressed à), Numbers 0-9 and Hyphen.

http://en.wikipedia.org/wiki/Domain_name摘抄:可以在域名中使用的有效字符是:

http://en.wikipedia.org/wiki/Domain_name excerpt: Valid characters that can be used in a domain name are:

a-z
0-9
- but not as a starting or ending character
. as a separator for the textual portions of a domain name

来自 http://tools.ietf.org/html/rfc1035

DNS 中的各种对象和参数都有大小限制.他们是下面列出.有些可以很容易地改变,有些则更基础.

Various objects and parameters in the DNS have size limits. They are listed below. Some could be easily changed, others are more fundamental.

labels          63 octets or less
names           255 octets or less
TTL             positive values of a signed 32 bit number.
UDP messages    512 octets or less

这篇关于子域中允许使用哪些字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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