On 2023-04-04 16:17, Per Jessen wrote:
Carlos E. R. wrote:
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"
The above is also what I'm using on a machine that has NM and dnsmasq.
I agree it makes sense to use «NETCONFIG_DNS_FORWARDER="dnsmasq"», but the old laptop doesn't have it. It has: Laicolasse:~ # grep NETCONFIG_DNS_FORWARDER /etc/0_Legolas/sysconfig/network/config NETCONFIG_DNS_FORWARDER="resolver" 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
Yup, that looks about right. That is your dhcp info plus the 127.0.0.1 (which NM has somehow figured out).
Rather the 127.0.0.1 plus the dhcp info. The order is crucial.
I don't know where that "search" is coming from,
dhcp.
No. This is the dhcp dns config in my router: https://paste.opensuse.org/pastes/8ed26ccac8bb There is no entry to setup the search.
as the file contains NETCONFIG_DNS_STATIC_SEARCHLIST="valinor valinor"
That is being ignored.
Yes.
which is not taking. If I now say NETCONFIG_DNS_POLICY="static"
I expect you have to use "STATIC".
Why? :-? NETCONFIG_DNS_POLICY="auto" takes, lowercase. Trying, anyway NETCONFIG_DNS_POLICY="STATIC" Laicolasse:~ # netconfig update -f Laicolasse:~ # tail /etc/resolv.conf # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # ### Call "netconfig update -f" to force adjusting of /etc/resolv.conf. search valinor nameserver 127.0.0.1 Laicolasse:~ # The fallback DNS servers are missing, but the search line is good. :-o NETCONFIG_DNS_POLICY="static" Laicolasse:~ # netconfig update -f Laicolasse:~ # tail /etc/resolv.conf # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # ### Call "netconfig update -f" to force adjusting of /etc/resolv.conf. nameserver 127.0.0.1 Laicolasse:~ # Huh? :-O Ok, leaving as STATIC. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)