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?
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...
Instead of it using /etc/resolv.conf ?
The MAN page says -r, --resolv-file=<file> Read the IP addresses of the upstream nameservers from <file>, instead of /etc/resolv.conf.
See above.
Are you trying to say that the resolution path, when called by an application, goes
gethostbyname -> /etc/resolv.conf -> localhost -> (alias) 127.0.0.1 -> DNSMasq listens on 127.0.0.1 -> DNSmasq gets file /etc/resolv.wan -> 8.8.8.8
Sorry, I don't see the point of the extra indirection. I note that the *applications* are guided by /etc/nsswitch.conf Mabye that is what matters?
My setup is: gethostbyname -> /etc/{nsswitch,resolv}.conf -> dnsmasq -> uses dnsmasq.conf and dnsmasq.d/*.conf -> upstream NS BTW: I would not use googles NS unless it was the only NS remaining.
But why not just put your "127.0.0.1 server-13-33-160-47.ord50.r.cloudfront.net" directly into /etc/hosts? That should work well, no muss nor fuss.
Along with the other 24619 addresses that I currently have, seperately, in /etc/dnsmasq.d/block.hosts.txt ?
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). -dnh -- No, it's a small country on the South American Ivory Coast, just to the left of the Caucasus, with penguin wool and yucca meat as primary exports. -- H. Ekker on the question if Austria is in Europe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org