host-name.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 05 Aug 2015 23:55:34 +0300
changeset 1729 22ffd80639c0
parent 899 7b4265c8d324
permissions -rw-r--r--
Make centered content design with adoption for mobile devices. Highlight TOC.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
899
7b4265c8d324 Set fill-column as directory local var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 735
diff changeset
     1
-*- mode: outline; coding: utf-8; -*-
0
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
* What characters may be used for host name?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
As say RFC 952 hostname is a text string up to 24 characters drawn from the alphabet
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
(A-Z), digits (0-9), minus sign (-), and period (.).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
As say RFC 1035:
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
  <domain> ::= <subdomain> | " "
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
  <subdomain> ::= <label> | <subdomain> "." <label>
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
  <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
  <let-dig-hyp> ::= <let-dig> | "-"
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
  <let-dig> ::= <letter> | <digit>
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
  <letter> ::= any one of the 52 alphabetic characters A through Z in
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
  upper case and a through z in lower case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
  <digit> ::= any one of the ten digits 0 through 9