On 12/03/18 03:24 PM, David Haller wrote:
Hello,
On Mon, 12 Mar 2018, Anton Aylward wrote:
On 12/03/18 02:08 PM, Lew Wolfgang wrote:
What exactly is in your /etc/resolv.conf? it is generated by the Networkmanager
So what?? WHAT IS IN IT! (no matter how it gets there), So what does NM write into it? localhost/127.0.0.1/::1? Or something else?
# cat /etc/resolv.conf # Generated by NetworkManager search HOME.systemi.ca HOME.SystemI.ca nameserver 8.8.8.8 nameserver 8.8.4.4 happy now?
The only nameserver entry should be:
nameserver localhost
You should put "nameserver 8.8.8.8" into another file, maybe /etc/resolv.wan, then point to that file in /etc/dnsmasq.conf:
resolv-file=/etc/resolv.wan
You should use 'server=' directives in dnsmasq.conf...
My setup is:
gethostbyname -> /etc/{nsswitch,resolv}.conf -> dnsmasq -> uses dnsmasq.conf and dnsmasq.d/*.conf -> upstream NS
Sorry, I forgot nsswitch in my flow chart. # grep hosts /etc/nsswitch.conf hosts: files mdns_minimal [NOTFOUND=return] dns
Using "wildcards" i.e. address= entries for dnsmasq, that will probably boil down to a fraction of those entries.
But, yes, if you use ready-made hosts files from e.g. adblocking projects, then do use that feature of additional hosts file(s).
I forget which 'adblocking' site I got that base file from, a long time ago (it might have been yoyo.org, but maybe not) but that was the way they recommended it be set up back then. But the point is that dnsmasq successfully read in the .txt file that was in hosts.txt format and reported the number of entries it had accepted. Ah: must remember this for when I switch to Chrome(ium) https://wccftech.com/how-to-fix-dns-based-ad-blockers-on-chrome/ -- 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