Hello, On Mon, 23 Sep 2019, Anton Aylward wrote:
I'm using DNSmask lcoally. Mostly it is fine.
I have a line in /etc/dnsmasq.conf that read
# or if you want it to read another file, as well as /etc/hosts, use # this. addn-hosts=/etc/dnsmasq.d/block.hosts.txt
The idea is to have lines like 127.0.0.1 addserver.mtv.com
in there so that I don't see adverts.
Much better is to use local adress definitions like this: ==== /etc/dnsmasq.conf ==== ### use one extra config file conf-file=/etc/dnsmasq.d/blockhosts.conf # ### or use all *.conf files in there # conf-dir=/etc/dnsmasq.d,*.conf # ### or use all files in there # conf-dir=/etc/dnsmasq.d ==== ==== /etc/dnsmasq.d/blockhosts.conf ==== address=/addserver.mtv.com/ address=/doubleclick.com/ ==== That gives you NXDOMAIN for all (sub-)domains under addserver.mtv.com and doubleclick.com... You can also redirect to an IP e.g. localhost as such: ==== address=/addserver.mtv.com/127.0.0.1 ==== HTH, -dnh -- panic("Yeee, unsupported cache architecture."); linux-2.6.6/arch/mips/mm/cache.c -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org