From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 9 21:29:05 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEB3C106566B; Sat, 9 Jun 2012 21:29:05 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id ED8BA8FC08; Sat, 9 Jun 2012 21:29:04 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so1363831wib.13 for ; Sat, 09 Jun 2012 14:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=dxGBpzWGUaTKy79D8V6ufq4W+au7G1hxdEGx1LBXn2g=; b=i5v9K3VVa7WvJ1Ld0aFXNONSWmaM6Z2du/8q21Wq+oMvtFhKE3rWh2m/vSL/uw7RC1 CDu2trdKaWKK/EToBh0qV7eUq7uN5EpAJsPpXO668FyIPFbLrq6NtKPTrTKkwNJtfGkn d8B6jgBO8ZaORhVZ84MiwngnawKV2MywF+MVhMC+4cecI97kSluYavxggaymfMJN6GhQ qqPjqLqXomb+tedFJkRn9AA3HRyE+VNjYdiYFuOSfCGAuyqmk4/lGUTVcn18tofjGNqz PkS/iuYqzn3EdUbECuO2cS3TNyoAWB1lSqnrM83D3kyZOfA8Xo9a+naLF9vHJjN/o9ck WI6g== MIME-Version: 1.0 Received: by 10.180.24.193 with SMTP id w1mr9823264wif.5.1339277342378; Sat, 09 Jun 2012 14:29:02 -0700 (PDT) Received: by 10.223.155.4 with HTTP; Sat, 9 Jun 2012 14:29:02 -0700 (PDT) In-Reply-To: References: <4FD0C1F4.2060108@FreeBSD.org> Date: Sat, 9 Jun 2012 14:29:02 -0700 Message-ID: From: Kevin Oberman To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Sat, 09 Jun 2012 21:29:23 +0000 Cc: Wojciech Puchar , hackers@freebsd.org, "Alexander V. Chernikov" , net@freebsd.org Subject: Re: ifconfig accepting hostname as ipv4 address X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2012 21:29:05 -0000 On Sat, Jun 9, 2012 at 12:37 AM, Garrett Cooper wrote: > On Sat, Jun 9, 2012 at 12:23 AM, Wojciech Puchar > wrote: >>> input. >>> Moreover, ifconfig em0 some_valid_fqdn/MASK silently ignores it, so you >>> can't set valid CIDR address using this notation. >>> >>> Classful era has ended more than 10 years ago, do we still want to keep >>> this behavior? >>> >> were not aware of that option, and it is rather stupid option - you shou= ld >> work on addresses not names when configuring network > > =A0 =A0I agree that it's not the best configuration in the world, as it > would only work 100% if a machine had proper DNS records or a > definitive hosts file. > =A0 =A0There are already enough bugs with static IP configurations and > hostnames as-is *I'm looking at you mountlate* -- no sense to > introduce more potentially buggy interoperability that only works in a > handful of niche cases. The idea was that you could enter all of the local interface names in /etc/hosts and than just put the names into the ifconfig commands. It was handy for keeping track of what port connected where on systems that had numerous interfaces, though this was more common in the day of async serial lines and modems. I'll admit that I have mixed feelings about its practicality today, though it does not hurt anything, as far as I can tell. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com