On 2023-04-04 14:24, Carlos E. R. wrote:
On 2023-04-04 01:25, Carlos E. R. wrote:
My resolv.conf file on new laptop contains:
...
Which is not valid, it is still using the two servers from Telefónica. The GUI says "add", I want to replace.
(the problem is that this way it is it not using dnsmasq!)
The only way out I see is editing my own resolv file :-/
Done, it works. Will it survive a reboot? I guess not. :-(
Question:
What is the approved way to use Network Manager and DNSmasq on openSUSE?
This means:
a) resolv.conf ONLY contains:
search valinor nameserver 127.0.0.1
and never change.
b) the dnsmasq configuration must be adapted automatically to the external dns servers it gets via dhcp.
<https://en.opensuse.org/Special:Search?search=dnsmasq>
finds nothing relevant
Found something that works (it seems). /etc/sysconfig/network/config NETCONFIG_FORCE_REPLACE="no" NETCONFIG_DNS_POLICY="auto" NETCONFIG_DNS_FORWARDER="dnsmasq" NETCONFIG_DNS_FORWARDER_FALLBACK="yes" This produces in /etc/resolv.conf: search Laicolasse.valinor nameserver 127.0.0.1 nameserver 80.58.61.254 nameserver 80.58.61.250 which is acceptable. Notice that the older laptop doesn't use this. I don't know where that "search" is coming from, as the file contains NETCONFIG_DNS_STATIC_SEARCHLIST="valinor valinor" which is not taking. If I now say NETCONFIG_DNS_POLICY="static" Then I get: ### Call "netconfig update -f" to force adjusting of /etc/resolv.conf. nameserver 127.0.0.1 Laicolasse:~ # No search line. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)