On 2023-04-04 08:45, Andrei Borzenkov wrote:
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.
Being both laptops, network manager is the obvious choice.
...
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?
It did not even survive a suspend. I know it is a tmpfs, but maybe there is some automatic magic. How would I know? The only way out I see is breaking the symlink and writing my own file. Ok, old laptop: Laicolasse:~ # cat /etc/0_Legolas/NetworkManager/system-connections/En\ un\ lugar\ de\ la\ Mancha [connection] id=En un lugar de la Mancha uuid=.... type=wifi permissions= timestamp=1647464311 zone=home [wifi] mac-address=.... mac-address-blacklist= mode=infrastructure seen-bssids=... ssid=... [wifi-security] key-mgmt=wpa-psk psk=... [ipv4] dns=127.0.0.1; dns-search= ignore-auto-dns=true may-fail=false method=auto [ipv6] addr-gen-mode=stable-privacy dns-search= ip6-privacy=0 method=auto [proxy] Laicolasse:~ # New laptop: Laicolasse:~ # cat /etc//NetworkManager/system-connections/En\ un\ lugar\ de\ la\ Mancha.nmconnection [connection] id=En un lugar de la Mancha uuid=... type=wifi interface-name=wlan0 metered=2 permissions= timestamp=1680564010 [wifi] mac-address-blacklist= mode=infrastructure ssid=... [wifi-security] key-mgmt=wpa-psk psk=... [ipv4] dns=127.0.0.1; dns-search= method=auto [ipv6] addr-gen-mode=stable-privacy dns-search= method=auto [proxy] Laicolasse:~ # -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)