This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Possible bug: ssh-host-config - getent when computer name is "-" (dash)
- From: Erik Soderquist <ErikSoderquist at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 24 Mar 2016 18:12:06 -0400
- Subject: Re: Possible bug: ssh-host-config - getent when computer name is "-" (dash)
- Authentication-results: sourceware.org; auth=none
- References: <trinity-e5b0769d-61d9-4ca8-9820-6997056dc6a2-1458828746171 at 3capp-mailcom-lxa02> <56F40B07 dot 2020400 at arcor dot de> <56F46003 dot 2060704 at gmail dot com>
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
> > https://en.wikipedia.org/wiki/Hostname
> > 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: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple