freebsd-ports/dns/adsuck/files/pkg-message.in
Baptiste Daroussin 5c9c7a01ff adsuck is a DNS relay that returns NXdomain for hosts that match names in a
blacklist for quick and non browser plugin based ad blocking.

WWW: http://opensource.conformal.com/wiki/Adsuck

PR:		ports/156644
Submitted by:	Philippe Pepiot <phil@philpep.org>
2011-05-07 15:13:53 +00:00

21 lines
452 B
Text

Quick way to use adsuck chrooted in /var/adsuck
mkdir /var/adsuck
cp %%EXAMPLESDIR%%/* /var/adsuck
# Adsuck forward to your old dns server
cp /etc/resolv.conf /var/adsuck
# Enable and start adsuck
echo adsuck_enable=\"YES\" >> /etc/rc.conf
/usr/local/etc/rc.d/adsuck start
# Use adsuck as dns server
echo "nameserver 127.0.0.1" > /etc/resolv.conf
If you're using DHCP consider configuring your dhclient.conf(5) to prevent
resolv.conf updates.