This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possible bug: ssh-host-config - getent when computer name is "-" (dash)

On Thu, Mar 24, 2016 at 5:45 PM, cyg Simple wrote:
> > the computer name "-" (dash) is illegal in the internet.
> Uh, that isn't true.

Yes, it is true.

> > See
> >
> > for a start about host name definitions.
> >
> From this reference:
> "The Internet standards (Requests for Comments) for protocols mandate
> that component hostname labels may contain only the ASCII letters 'a'
> through 'z' (in a case-insensitive manner), the digits '0' through '9',
> and the hyphen ('-'). The original specification of hostnames in RFC
> 952, mandated that labels could not start with a digit or with a hyphen,
> and must not end with a hyphen."
> Note that hyphen (a.k.a. dash) is permitted.

The dash is permitted as _a_ character in a valid hostname, but is
explicitly prohibited as the first or last character.  Being that in
this scenario it is the only character, it violates the prohibition on
both first and last character.

I would change the computer name.

-- Erik

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]