Re: A trailing dash in a domain name makes validator fail?

At 2001-07-18T11:48-0400, Diman Grozny wrote:-

> It appears that validator fails to validate any URL that has a
> trailing "-" in a part of the domain name. For example, I tried to
> validate http://clan-xz-.hotbox.ru and it failed. The site definitely
> exists at that address, but the validator reports "Bad Hostname"..
> I've also tried other URLs with a trailing dash and had the same
> effect. Replacing "-" with "%2D" doesn't help. What could be the
> problem with that?

The problem that it is a bad hostname. Each component of a hostname may
contain ASCII letters, digits and hyphens, but may not start or end with a
hyphen.


Tim Bagot

Received on Wednesday, 18 July 2001 12:59:00 UTC