subdomain - 子域中允许使用哪些字符?

标签 subdomain special-characters

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

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

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

最佳答案

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

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

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

来自https://www.rfc-editor.org/rfc/rfc1035

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

关于subdomain - 子域中允许使用哪些字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7111881/

相关文章:

php - Symfony 动态子域

ruby - 我们可以在 ruby​​ 文件的注释中添加特殊字符吗?

c# - 属性名称中的特殊字符

android - .co.uk域名的build.gradle软件包名称

django-templates - Django - URL 模板标签与子域断开

node.js - 表达子域路由问题

javascript - jQuery - 替换字符串中的所有括号

java - 如何在 Android 上制作一个显示退格 (⌫) 字符的按钮?

postgresql - Pg-promise 客户端无法从 ElephantSQL 云数据库中正确检索特殊字符

iis-7 - 在注册时创建子域