From owner-freebsd-questions@FreeBSD.ORG Wed Mar 27 09:06:40 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C21FCC6F for ; Wed, 27 Mar 2013 09:06:40 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 8C1352B1 for ; Wed, 27 Mar 2013 09:06:40 +0000 (UTC) Received: from r56.edvax.de (port-92-195-88-89.dynamic.qsc.de [92.195.88.89]) by mx01.qsc.de (Postfix) with ESMTP id DEA403CA14; Wed, 27 Mar 2013 10:06:32 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r2R96dfY002040; Wed, 27 Mar 2013 10:06:39 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 27 Mar 2013 10:06:39 +0100 From: Polytropon To: perryh@pluto.rain.com (Perry Hutchison) Subject: Re: line lengths in /etc/hosts Message-Id: <20130327100639.bcdaf9cc.freebsd@edvax.de> In-Reply-To: <5152b48c.U+MyuQ85COeWB4wW%perryh@pluto.rain.com> References: <5152b48c.U+MyuQ85COeWB4wW%perryh@pluto.rain.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2013 09:06:40 -0000 On Wed, 27 Mar 2013 01:57:48 -0700, Perry Hutchison wrote: > I can easily suppress access to unwanted web sites by adding > names to the localhost line in /etc/hosts, like this: > > 127.0.0.1 localhost localhost.my.domain bad1.com bad2.com ... > > My version of that line has gotten rather long :) Without actually havint tested this, but have you considered using the \ continuation character (linebreak escape) to avoid the problem? Also I think there's not a generic limit to the /etc/hosts file itself, but maybe to the input buffers of the programs that read this file... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...