Article View: ch.network
Article #1503Re: Once again: Underscore in domain names
From: Daniel G. Kluge
Date: Tue, 26 Nov 1996 00:00
Date: Tue, 26 Nov 1996 00:00
57 lines
2725 bytes
2725 bytes
karrer@ife.ee.ethz.ch (Andreas Karrer) wrote:
>I was quite sure that underscores (_), ascii dec(95) were not allowed
>in host and domain names. If memory serves, BIND in its later versions
>enforces this (unless explicitly overwritten). I'm not aware of
>an RFC that relaxed the host name requirements later than RFC 1123
>(which relaxed the rules such that a non-toplevel domain part may
>begin with a digit). But then, there are a lot of RFCs issued these
>days, and I don't read them all :-)
I investigated this one once, because I wrote some 'intelligent'
scripts which should parse such silly beasts. According to RFC 882 (
DOMAIN NAMES - CONCEPTS and FACILITIES) the parts of domain-names have
to be of the following structure (as perl-regexp)
[a..z][a..z\d-]*[0..9a..z]/i.
But if you go and ask in comp.protocols.tcp-ip.domains, you will get
no consensus, since a lot of people use '_' and '/' in their domain
and hostnames.
The relevant section of RFC 882 says the following (BNF included)
<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
Note that while upper and lower case letters are allowed in domain
names no significance is attached to the case. That is, two names
with the same spelling but different case are to be treated as if
identical.
The labels must follow the rules for ARPANET host names. They must
start with a letter, end with a letter or digit, and have as
interior
characters only letters, digits, and hyphen. There are also some
restrictions on the length. Labels must be 63 characters or less.
-daniel
------------------------------------------------------------------------------
Union Bank of Switzerland / Schweizerische Bankgesellschaft PMIP
+41 1 235 6111 email: Daniel.Kluge@ubs.com / Daniel.z.h.k.l.1.Kluge@ubs.ch
Technical Details
Message-ID:
<57fcdv-sem@svusenet.ubs.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn59ln03.odl.karrer@kuru.ee.ethz.ch>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8cd8,d727a0d34762538b X-Google-Attributes: gidf8cd8,public From: Daniel.Kluge@ubs.com (Daniel G. Kluge) Subject: Re: Once again: Underscore in domain names Date: 1996/11/26 Message-ID: <57fcdv-sem@svusenet.ubs.ch> X-Deja-AN: 200901863 references: <slrn59ln03.odl.karrer@kuru.ee.ethz.ch> organization: Union Bank of Switzerland reply-to: daniel-kl1.kluge@ubs.ch newsgroups: ch.network