equal
deleted
inserted
replaced
|
1 .. -*- coding: utf-8; -*- |
|
2 .. include:: HEADER.rst |
|
3 |
|
4 ============ |
|
5 Host names |
|
6 ============ |
|
7 .. contents:: |
|
8 :local: |
|
9 |
|
10 What characters may be used for host name? |
|
11 ========================================== |
|
12 |
|
13 As say RFC 952 hostname is a text string up to 24 characters drawn from the alphabet |
|
14 (A-Z), digits (0-9), minus sign (-), and period (.). |
|
15 |
|
16 As say RFC 1035:: |
|
17 |
|
18 <domain> ::= <subdomain> | " " |
|
19 |
|
20 <subdomain> ::= <label> | <subdomain> "." <label> |
|
21 |
|
22 <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ] |
|
23 |
|
24 <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str> |
|
25 |
|
26 <let-dig-hyp> ::= <let-dig> | "-" |
|
27 |
|
28 <let-dig> ::= <letter> | <digit> |
|
29 |
|
30 <letter> ::= any one of the 52 alphabetic characters A through Z in |
|
31 upper case and a through z in lower case |
|
32 |
|
33 <digit> ::= any one of the ten digits 0 through 9 |