[BlueOnyx:09491] Re: unable to set numeric sub domain name

Michael Stauber mstauber at blueonyx.it
Tue Jan 31 08:48:50 -05 2012


Hi Radek,

> I'm trying to add a sub domain, however the problem is that the naming
> convention requires it has to be numerical. And I'm getting the message
> "sorry, 01 is not a valid for Host Name".

According to RFC-952 the first character of a host- or domain-name may not be 
a number, dash or hyphen. It must be a letter. 

See: http://tools.ietf.org/html/rfc952

Hence BlueOnyx doesn't allow a naming convention where a host- or domain-name 
starts with a number.

However, in recent years domain name registries have allowed certain RFC 
violating domain names (9gag.com anyone? ;-), so this RFC may have been 
overtaken by events or bad practices somewhere upstream.

> Is there any way to go around this problem?

You could edit this file:

/usr/sausalito/schemas/basetypes.schema

It has the following regular expressions for "fqdn" (fully qualified domain 
names), hostnames and domain names:

<typedef name="fqdn" type="re"
  data="^([A-Za-z0-9][A-Za-z0-9\-]*\\.)+[A-Za-z]+$"
/>
        
<typedef name="hostname"        type="re"
  data="^[A-Za-z0-9][A-Za-z0-9\-]*(\\.[A-Za-z0-9][A-Za-z0-9\-]*)*$"
/>

<typedef name="domainname"      type="re"
  data="^[A-Za-z0-9][A-Za-z0-9\-]*([\\.][A-Za-z0-9][A-Za-z0-9\-]*)*$"
/>

After modifying the regular expressions to your liking, restart CCEd for the 
change to take effect:

/etc/init.d/cced.init restart

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list