Re: [Nolug] Easy question

From: Donnie Cameron <>
Date: Wed, 21 Nov 2007 12:40:31 -0500
Message-ID: <>

I've never done this before and I'm not investigating this problem
now, so this answer is probably not the correct one.

I would configure /etc/resolv.conf so that Debian always checks the
/etc/hosts file first. Then, in /etc/hosts, I would point
to a virtual host that serves a page like "this Web site is blocked."
I could point a bunch of domains to that virtual host. The virtual
host configuration file would have to have all those domains listed
with the ServerAlias directive (or equivalent non-apache directive).


On Nov 21, 2007 11:15 AM, Jonathan Roberts <> wrote:
> Happy Thanksgiving!
> I have a box running Debian acting as a DHCP & DNS server for a small
> Windows network. I'd like to block a number of web sites (, etc)
> at the DNS server (instead of on each Windows box). Can anyone point me to
> a good document on the best way to do so? Re-directing these sites or just
> blackholing them completely is fine.
> Thanks for the help,
> Jonathan
Nolug mailing list
Received on 11/21/07

This archive was generated by hypermail 2.2.0 : 12/19/08 EST