Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2013 10:06:39 +0100
From:      Polytropon <>
To: (Perry Hutchison)
Subject:   Re: line lengths in /etc/hosts
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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:
>	localhost ...
> 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...

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Want to link to this message? Use this URL: <>