Re:Adsuck – a small DNS server that spoofs blacklisted addre...
by creshal on Tuesday November 17, 2015 @04:50AM
(#10580082)
dnsmasq has an addn-hosts parameter, so you don't have to thrash your main hosts file.
[ Parent
| on HN ]
Re:Adsuck – a small DNS server that spoofs blacklisted addre...
by jakeogh on Tuesday November 17, 2015 @03:45PM
(#10583819)
I'm trying to think of a use case for addn-hosts in dnsgate. If the user is not using dnsmasq, then they are stuck with /etc/hosts, if they are using dnsmasq then they might as well use a dnsmasq syntax file so '--block-at-tld' can be used. dnsmasq.conf has an include syntax:
echo "conf-file=/etc/dnsgate/generated_blacklist.conf" >> /etc/dnsmasq.conf
Re:Adsuck – a small DNS server that spoofs blacklisted addre...
by laumars on Tuesday November 17, 2015 @05:02AM
(#10580125)
Oh that's handy. Would also make the update even easier since you no longer need to preserve any host-specific entries so a simple one liner in `curl` or `wget` would be enough.
Thanks for the recommendation.