From owner-freebsd-net@FreeBSD.ORG Fri Jun 8 09:04:29 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 66521106564A; Fri, 8 Jun 2012 09:04:29 +0000 (UTC) (envelope-from j.mckeown@ru.ac.za) Received: from mail.ru.ac.za (mail.ru.ac.za [IPv6:2001:4200:1010:0:250:56ff:fe8d:5]) by mx1.freebsd.org (Postfix) with ESMTP id 20BA68FC17; Fri, 8 Jun 2012 09:04:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ru.ac.za; s=ru-msa; h=X-Authenticated-User:Message-Id:Content-Type:MIME-Version:Date:Subject:To:From; bh=yTKndxVMfoM9Zn9bGD55SCM8l0ginloRz8/Y0GbDkZY=; b=DOaBrGpeqs20IFtmT5LaPKtS3B/wEw76QycGe7wTVGs395R4lm+xBrfO+B5Kkj9B/ixS/ixShvoscqFA4On3oXGVDSaZmUdMiXsR/bEaAzGL9Vl0RXbBqfLwwhy+Wk2H; Received: from vorkosigan.ru.ac.za ([2001:4200:1010:1058:219:d1ff:fe9f:a932]:58928) by mail.ru.ac.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1Scv7J-0004Is-2O; Fri, 08 Jun 2012 11:04:25 +0200 From: Jonathan McKeown Organization: Rhodes University To: freebsd-hackers@freebsd.org Date: Fri, 8 Jun 2012 11:04:24 +0200 User-Agent: KMail/1.9.10 References: <4FD0C1F4.2060108@FreeBSD.org> <201206080920.56986.j.mckeown@ru.ac.za> <4FD1AD1D.4050308@FreeBSD.org> In-Reply-To: <4FD1AD1D.4050308@FreeBSD.org> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Virus-Scanned: mail.ru.ac.za (2001:4200:1010:0:250:56ff:fe8d:5) X-Authenticated-User: s0900137 from vorkosigan.ru.ac.za (2001:4200:1010:1058:219:d1ff:fe9f:a932) using auth_plaintext Cc: "Alexander V. Chernikov" , net@freebsd.org Subject: Re: ifconfig accepting hostname as ipv4 address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2012 09:04:29 -0000 On Friday 08 June 2012 09:43:25 Alexander V. Chernikov wrote: > On 08.06.2012 11:20, Jonathan McKeown wrote: > > On Thursday 07 June 2012 17:00:04 Alexander V. Chernikov wrote: > >> Hello list! > >> > >> Since the early days ifconfig(8) has the following functionality: > > > > [hostname in place of literal address] > > > >> Moreover, ifconfig em0 some_valid_fqdn/MASK silently ignores it, so you > >> can't set valid CIDR address using this notation. > > > > I'm not sure that's true. Have you tried it? Because it seems to work > > here. > > Strangely enough, it works on another machine. Ok, this one works and > can unfortunately be used by other people. > > However, original question remains. So your question is, do we want to keep the behaviour of being able to configure an interface by hostname as well as by IP address? My vote is yes. Sure, a typo in the parameters to ifconfig can cause problems under some circumstances. So can a typo in any command. I don't think that's a good enough reason to remove functionality you regard as ``unfortunate''. We find it useful, and a significant aid to maintainability and readability of configuration files.