host-name.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:46:36 +0200
changeset 1905 fba288d59662
child 1912 8b81a8f0f692
permissions -rw-r--r--
Include only local subsections into TOC. This prevent duplication of TOC when build single page HTML document. Also this make unnecessary CSS hack to hide document title as top level section.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

============
 Host names
============
.. contents::
   :local:

What characters may be used for host name?
==========================================

As say RFC 952 hostname is a text string up to 24 characters drawn from the alphabet
(A-Z), digits (0-9), minus sign (-), and period (.).

As say RFC 1035::

  <domain> ::= <subdomain> | " "

  <subdomain> ::= <label> | <subdomain> "." <label>

  <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]

  <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>

  <let-dig-hyp> ::= <let-dig> | "-"

  <let-dig> ::= <letter> | <digit>

  <letter> ::= any one of the 52 alphabetic characters A through Z in
  upper case and a through z in lower case

  <digit> ::= any one of the ten digits 0 through 9