On Tue, Apr 4, 2023 at 2:26 AM Carlos E. R. <robin.listas@telefonica.net> wrote: ....
### /etc/resolv.conf is a symlink to /run/netconfig/resolv.conf ### autogenerated by netconfig! # ...
It is not reading those variables:
Laicolasse:~ # grep "NETCONFIG_DNS_STATIC_SEARCHLIST\|NETCONFIG_DNS_STATIC_SERVERS\|NETCONFIG_DNS_FORWARDER\|NETCONFIG_DNS_POLICY" /etc/sysconfig/network/config NETCONFIG_DNS_POLICY="auto" ...
On my older laptop, it works:
You neither show netconfig configuration from "older laptop", nor even tell us what network management program you are using on either of them so it is entirely useless information. ...
Maybe I have to write it up in the Network Manager config.
So it turns out you are using NetworkManager (although you mentioned two systems so far and it is still entirely unclear which one has NetworkManager). Assuming this is the "non-working" one - read "man netconfig" once more. Policy "auto" resolves to "NetworkManager STATIC_FALLBACK" in presence of NetworkManager which means, static entries from /etc/sysconfig/network/config are used only if no information from NetworkManager is available.
I put in the wifi connection I am using
[ipv4] dns=127.0.0.1;
These servers are added to whatever NetworkManager gets from DHCP. If you do not want to use information from DHCP, set "ignore-auto-dns" (I believe, some GUI has the choice "use DHCP only for IP address" or similar. ...
The only way out I see is editing my own resolv file :-/
Done, it works. Will it survive a reboot? I guess not. :-(
What makes you think so?