Comment 15 for bug 144431

(In reply to comment #1)
> Such hostnames are invalid, see section 2 of RFC3696.
> For hostnames, hyphen can be only in the middle, not at the start of at the end.

Well, it's true, but
1) hostnames starting with numeric value are also not valid, but can be resolved via gethostbyname()
(i.e. ping;

2) We getting odd behaviour on various system. Even worse - on same machine using different tools
(nslookup vs. ping).