From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111307 invoked by alias); 24 Mar 2016 22:12:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 111295 invoked by uid 89); 24 Mar 2016 22:12:22 -0000 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 Received: from mail-lb0-f170.google.com (HELO mail-lb0-f170.google.com) (209.85.217.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 24 Mar 2016 22:12:10 +0000 Received: by mail-lb0-f170.google.com with SMTP id k12so39555500lbb.1 for ; Thu, 24 Mar 2016 15:12:09 -0700 (PDT) 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) Received: by 10.114.199.107 with HTTP; Thu, 24 Mar 2016 15:12:06 -0700 (PDT) In-Reply-To: <56F46003.2060704@gmail.com> References: <56F40B07.2020400@arcor.de> <56F46003.2060704@gmail.com> Date: Thu, 24 Mar 2016 22:12:00 -0000 Message-ID: Subject: Re: Possible bug: ssh-host-config - getent when computer name is "-" (dash) From: Erik Soderquist To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00507.txt.bz2 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