dsuck is a small DNS server, that returns
NXDOMAIN answer for blacklisted sites, so browser/OS will not wait for answer from blocked hosts. It's main advantage over
DD-WRT solution.
Requirements to run adsuck are:
- Asuswrt-Merlin driven RT-N16/RT-N66U/RT-AC66U router with USB-drive and jffs partition enabled.
- Working Entware environment. Please, refer HOW-TO for details.
Installation:
- Install adsuck package:
opkg install adsuck
- copy provider's DNS list to adsuck folder:
cp -f /tmp/resolv.conf /opt/etc/adsuck/
- choose what type of sites you want to filter, all filter files is in the /opt/etc/adsuck/Hosts.*:
- Hosts.blc - 1916 sites anti-phishing white list,
- Hosts.mis - 566350 other potential dangerous sites (drugs, sects, spam, traps, violence)
- Hosts.pub - 106338 advert. sites,
- Hosts.rsk - 120033 sites with potencial dangerous contents, viruses mostly,
- Hosts.sex - 905497 adult content sites,
- Hosts.trc - 46584 anti tracker/counters list.
- let adsuck to run at boot time:
echo \#!/bin/sh > /jffs/scripts/services-start
echo adsuck -d -l 127.0.0.1 -c /opt/etc/adsuck -f resolv.conf -p 65053 -u admin Hosts.sex Hosts.trc Hosts.pub >> /jffs/scripts/services-start
echo no-resolv > /jffs/configs/dnsmasq.conf.add
echo server=127.0.0.1\#65053 >> /jffs/configs/dnsmasq.conf.add
and reboot router. In example, i've added three filters: Hosts.pub + Hosts.sex + Hosts.trc which gives over a million hosts to be blacklisted.
Feel free to ask any details you want to know!