delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/24/18:12:36

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=rk
/K4MIkRLUMkFrENkeyg1oEWrGNJdGuFZtvq1j2svj11B/T9D5CRPQoVRB5zdVqyT
L5hjE9XXC1KYhRGp5yW4e0W+Diy18a3Y1Mc/nPXtdWmJCc+J8go1DWTJ0seDDOjv
WHsFo/jq0mpMDF7c7nYarL0QiVfpxmhl1EnnoGixE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=TKDzXhvX
IxYmtUF7l/T3bkE9Tqo=; b=e1Ag5QwImMoXJ9CUW5EWKTB09cKnJLvZekSOV/02
nYw2U0Hf6VAO+Z2ZFUc33zDaehXAqA5h/OUqMAeJqrqPRpGnbfoC8dJtUTlDz4bn
AiHNx67AkTSN51tDwEyxW+rvEIF1DWHHGLvkkfuvE4CEBAGdkJl4sz6UtTIvKFRr
yrc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1088, Being, dash
X-HELO: mail-lb0-f170.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=6cHHJLf6q49xHTV0LDBlzdzYqyFa9lQvwQbyUsQtPD0=; b=KJrNgKEDGHODC8CvbH3FCbpg9y0P/IZkgFcaoCqp1qwOkWDrqePc72Cvt8vEaSbs66 NJmUs1OD3Mh6pozQJnCzxkHiwTDzivVd4wnGdwr0TBTl8bNmIcl6+j6FD3g+RwbFeh8N 68kXz6AVRCAiV9G+5nFhTiBFk65ugnjOUBWFvghocGNJhMnMGb1Kj0gd9YAMIxeFABX8 +3JLflG1spShrEMnXf5vWx6AOlE3sPgsVV721rJIJO0YwRuCWFMaAUYa1sDRnUp93Qh/ WOKirjGabDs6Au7aHIs1PdTX+ctCg0HoV8eXFMJxXk7wzr2gzFuIRQIXAGbM9wDjh3D0 NrwA==
X-Gm-Message-State: AD7BkJJL+Wh5qpdF7MaSav/ue7OYy2UENgbngWjLKz87DREKQqj12IPOgmJXSJc+RbzVcfj/mYqMfYiSGqiYOA==
MIME-Version: 1.0
X-Received: by 10.112.55.97 with SMTP id r1mr4310866lbp.78.1458857527005; Thu, 24 Mar 2016 15:12:07 -0700 (PDT)
In-Reply-To: <56F46003.2060704@gmail.com>
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>
Date: Thu, 24 Mar 2016 18:12:06 -0400
Message-ID: <CACoZoo2-vOzGC1cwzB3zObKMEB6NwZTzpb=Qb75UkKDZj=CaLA@mail.gmail.com>
Subject: 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
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019