使用点 (.) 符号创建子域

Creating a subdomain with dot(.) symbol

我们可以在我们的网络服务器上创建一个没有点符号的子域吗?

例如我有域名www.example.com。现在,如果我想创建一个子域 www.myexample.com。可能吗?

最近,我们可以选择仅使用点符号创建子域。

子域用点表示。

www.mydomain.com 不会是 www.domain.com 的子域——在这两种情况下,"www" 都是子域。 "mydomain.com" 和 "domain.com" 只是不同的域。

没有。 RFC 1738 定义一个 HTTP URL 如下:

An HTTP URL takes the form:

http://<host>:<port>/<path>?<searchpart>

where <host> and <port> are as described in Section 3.1. If :<port> is omitted, the port defaults to 80.

3.1节定义<host>部分如下:

The fully qualified domain name of a network host, or its IP address as a set of four decimal digit groups separated by ".". Fully qualified domain names take the form as described in Section 3.5 of RFC 1034 and Section 2.1 of RFC 1123: a sequence of domain labels separated by ".", each domain label starting and ending with an alphanumerical character and possibly also containing "-" characters. The rightmost domain label will never start with a digit, though, which syntactically distinguishes all domain names from the IP addresses.

子域来自 right to left:

for example, wikipedia.org comprises a subdomain of the org domain, and en.wikipedia.org comprises a subdomain of the domain wikipedia.org

www.example.comwww.myexample.com 被认为是 com 的两个 独立的 子域,因为它们的右数第二个“域标签” " (myexample vs example) 不同;两者都不被认为是另一个的子域。