3 ms·
dnsmasq has an addn-hosts parameter, so you don't have to thrash your main hosts file.
by creshal 11y ago
dnsmasq has an addn-hosts parameter, so you don't have to thrash your main hosts file.
- laumars 11y agoOh 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.
- jakeogh 11y agoI'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