Hello, On Mon, 12 Mar 2018, Anton Aylward wrote:
On 12/03/18 03:24 PM, David Haller wrote:
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?
Yes :) So, NM generated that and it lacks the 127.0.0.1 pointing to dnsmasq.
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
a) that's ok. So /etc/hosts has precedence over dns (i.e. dnsmasq or until you get NM configured the 8.8. google-DNSs). b) do you use mdns? I.e. are you using zeroconf/bonjour/avahi to get your stuff connected? If not, prune that line in nsswitch.conf so it reads just: ==== hosts: files 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.
Yeah, it's ok, but ineffective for multi-hosts domains that you want to add yourself. Just think about doubleclick. I had this in my hosts: #127.0.1.1 ad.doubleclick.com ad.doubleclick.net ad.uk.doubleclick.net #127.0.1.1 ad-emea.doubleclick.net ad.de.doubleclick.net And that was just a subset. Now I just have address=/doubleclick.com/ address=/doubleclick.net/ and am done, no matter what hostnames get used under those domains.
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.
Yeah, sure. Use it. Just don't "maintain" that file yourself. uBlock can also use some of those lists (e.g. http://hosts-file.net/).
Ah: must remember this for when I switch to Chrome(ium) https://wccftech.com/how-to-fix-dns-based-ad-blockers-on-chrome/
*Aargh* one more reason not to use either. And BTW: chromium is a bloat monster as bad as FF. Go ahead and take a look into the source tarballs of both. What they pack as 3rd party libs ... And BTW: QtWebEngine packs an (outdated) Chromium (including _that_ ones (outdated) 3rd party libs). And QtWebKit is an (outdated) WebKit. So beware of deps on those too. -dnh -- Intel engineering seem to have misheard Intel marketing strategy. The phrase was "Divide and conquer" not "Divide and cock up" -- Alan Cox, iialan@www.linux.org.uk -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org