Re: Czy to nie jest przegiecie ?

Autor: Szymon Sokół (szymon_at_bastard.operator.from.hell.pl)
Data: Tue 26 Feb 2002 - 16:34:13 MET


On Mon, 25 Feb 2002 22:37:24 +0000 (UTC), Yoss <bartek_at_milc.com.pl> wrote:

>Tomasz, napisało Ci sie:
>>> (S19.ZADZWON.340-67-07.PRZYWIEZIEMY.PIZZE.Z.OREGANO.pl[213.25.108.219]) -
>> Na pewno to nie jest zgodne z RFC.
>
>Moge spytac dlaczego?

Z 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>

Wg tej definicji, żaden człon nazwy domeny nie może się zaczynać od cyfry.
Oczywiście, to RFC jest przestarzałe. Zob. RFC 1123, pkt. 2.1:

      The syntax of a legal Internet host name was specified in RFC-952
      [DNS:4]. One aspect of host name syntax is hereby changed: the
      restriction on the first character is relaxed to allow either a
      letter or a digit. Host software MUST support this more liberal
      syntax.

Ponadto, RFC 2181 podaje, że długość elementu nie może przekroczyć 63 znaków,
a całej nazwy - 255 znaków.

Tak więc, nazwa cytowana wyżej jest OK.

-- 
Szymon Sokol (SS316-RIPE, SS4004) -- Network Manager                         B
Computer Center, University of Mining and Metallurgy, Krakow                 O
http://galaxy.uci.agh.edu.pl/~szymon/   PGP 2.x: 0x61094A7D, 5.x: 0xF9289982 F
Free speech includes the right not to listen, if not interested -- Heinlein  H


To archiwum zostało wygenerowane przez hypermail 2.1.7 : Wed 19 May 2004 - 17:11:06 MET DST