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 myspace.com
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).
--Donnie
On Nov 21, 2007 11:15 AM, Jonathan Roberts <gremln007@gmail.com> 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 (myspace.com, 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
nolug@nolug.org
Received on 11/21/07
This archive was generated by hypermail 2.2.0 : 12/19/08 EST