What am I missing? I am using the 'additional hosts' mechanism of DNSMasq to block adverts Only DNSmasq doens't seem to be diing the job. I have the 'additional hosts' defined in the /etc/dnsmasq.conf # grep -C 2 addn /etc/dnsmasq.conf # or if you want it to read another file, as well as /etc/hosts, use # this. addn-hosts=/etc/dnsmasq.d/block.hosts.txt I have a goddamnawful advert from a site defined there, along with a lot of ther stuff # grep server-13-33-160-47.ord50.r.cloudfront.net /etc/dnsmasq.d/block.hosts.txt 127.0.0.1 server-13-33-160-47.ord50.r.cloudfront.net I restart dnsmasq and it confirms that it read that file # systemctl status dnsmasq.service * dnsmasq.service - DNS caching server. Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled) Drop-In: /run/systemd/generator/dnsmasq.service.d `-50-insserv.conf-$named.conf Active: active (running) since Mon 2018-03-12 12:00:42 EDT; 1min 16s ago Process: 8002 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS) Main PID: 8005 (dnsmasq) Tasks: 1 (limit: 512) CGroup: /system.slice/dnsmasq.service `-8005 /usr/sbin/dnsmasq --log-async --enable-dbus --keep-in-foreground Mar 12 12:00:42 main.HOME.SystemI.ca systemd[1]: Started DNS caching server.. Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: started, version 2.78-security-prerelease cachesize 2000 Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: compile time options: IPv6 GNU-getopt no-DBus i18n no-I...tify Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: DBus support enabled: connected to system bus Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: asynchronous logging enabled, queue limit is 5 messages Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: reading /etc/resolv.conf Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: using nameserver 8.8.8.8#53 Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: using nameserver 8.8.4.4#53 Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: read /etc/hosts - 18 addresses Mar 12 12:00:42 main.HOME.SystemI.ca dnsmasq[8005]: read /etc/dnsmasq.d/block.hosts.txt - 24619 addresses But if I ping that site or visit a page that uses it, this doens't work as I expect. # ping server-13-33-160-47.ord50.r.cloudfront.net PING server-13-33-160-47.ord50.r.cloudfront.net (13.33.160.47) 56(84) bytes of data. 64 bytes from server-13-33-160-47.ord50.r.cloudfront.net (13.33.160.47): icmp_seq=1 ttl=246 time=23.4 ms 64 bytes from server-13-33-160-47.ord50.r.cloudfront.net (13.33.160.47): icmp_seq=2 ttl=246 time=32.0 ms 64 bytes from server-13-33-160-47.ord50.r.cloudfront.net (13.33.160.47): icmp_seq=3 ttl=246 time=22.8 ms 64 bytes from server-13-33-160-47.ord50.r.cloudfront.net (13.33.160.47): icmp_seq=4 ttl=246 time=32.4 ms 64 bytes from server-13-33-160-47.ord50.r.cloudfront.net (13.33.160.47): icmp_seq=5 ttl=246 time=30.2 ms How come DnsMasq isn't serving up 127.0.0.0 becuase it is using namesever 8.8.8.8? Well if I try putting 127.0.0.1 ahead of that in the /etc/resolv.conf I get Mar 12 12:15:09 main.HOME.SystemI.ca dnsmasq[8005]: ignoring nameserver 127.0.0.1 - local interface What am I missing? Is this caching problem? How do I flush cache? -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org