[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Recursion, anyone?



At 11:17 PM 11/04/2001 +0100, Ian Phillipps wrote:
> From RFC 1034:
>
><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
>
>So, the answer that 'A--' is legal.
>And www.f--k.com exists, and for sale...

As I see by the definition of <label>, only names starting with a letter 
and ending with a letter or a digit are legal, so 'A--' is legal, but 
'A--B' or 'A--0' are legal. I think I've seen some domain names starting 
with a number, but I should be wrong. Anyone ever seen one of these?

- Branden


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe