On 2023-04-05 08:50, Per Jessen wrote:
Carlos E. R. wrote:
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.
I think it would be more useful if you showed us the dhcp lease information instead. The config is specific to your router, we can't help with that.
I wanted to, but did not remember how. Laicolasse:~ # dhcp[tab][tab] produces nothing.
Try looking for the most recent lease:
ls -lrt /var/lib/NetworkManager/*lease
Oh, this method is new to me.
Laicolasse:~ # ls -lrt /var/lib/NetworkManager/*lease -rw-r--r-- 1 root root 77 Mar 28 03:26 /var/lib/NetworkManager/dhclient6-7ba00b1d-8cdd-30da-91ad-bb83ed4f7474-eth0.lease -rw-r--r-- 1 root root 1423 Mar 29 22:20 /var/lib/NetworkManager/dhclient-7ba00b1d-8cdd-30da-91ad-bb83ed4f7474-eth0.lease -rw-r--r-- 1 root root 77 Mar 29 22:30 /var/lib/NetworkManager/dhclient6-be61fc8f-4867-4cfb-a816-e03e05ff8eef-wlan0.lease -rw-r--r-- 1 root root 1054 Apr 5 11:00 /var/lib/NetworkManager/dhclient-be61fc8f-4867-4cfb-a816-e03e05ff8eef-wlan0.lease Laicolasse:~ #
Laicolasse:~ # cat /var/lib/NetworkManager/dhclient-be61fc8f-4867-4cfb-a816-e03e05ff8eef-wlan0.lease lease { interface "wlan0"; fixed-address 192.168.2.18; option subnet-mask 255.255.0.0; option dhcp-lease-time 43200; option routers 192.168.1.1; option dhcp-message-type 5; option dhcp-server-identifier 192.168.1.1; option domain-name-servers 80.58.61.254,80.58.61.250; option rfc4833-tz-posix-string "CET-1CEST-2,M3.5.0/02:00,M10.5.0/03:00"; option unknown-120 1:31:30:2e:33; option ntp-servers 10.22.64.1; renew 3 2023/04/05 06:05:17; rebind 3 2023/04/05 11:53:14; expire 3 2023/04/05 13:23:14; } lease { interface "wlan0"; fixed-address 192.168.2.18; option subnet-mask 255.255.0.0; option routers 192.168.1.1; option dhcp-lease-time 43200; option dhcp-message-type 5; option domain-name-servers 80.58.61.254,80.58.61.250; option dhcp-server-identifier 192.168.1.1; option rfc4833-tz-posix-string "CET-1CEST-2,M3.5.0/02:00,M10.5.0/03:00"; option unknown-120 1:31:30:2e:33; option ntp-servers 10.22.64.1; renew 3 2023/04/05 14:51:05; rebind 3 2023/04/05 19:30:51; expire 3 2023/04/05 21:00:51; } Laicolasse:~ # See? No search item. And an ntp item I knew nothing about.
Here's is mine: https://paste.opensuse.org/pastes/37f3f013acdd
which is not taking. If I now say NETCONFIG_DNS_POLICY="static"
I expect you have to use "STATIC".
Why? :-?
That is what the man page says - it suggests the option is case sensitive. Unusual yes.
NETCONFIG_DNS_POLICY="auto" takes, lowercase.
That is also what the man page says.
Ok, funny. "" also works. Laicolasse:~ # grep "NETCONFIG_DNS_STATIC_SEARCHLIST\|NETCONFIG_DNS_STATIC_SERVERS\|NETCONFIG_DNS_FORWARDER\|NETCONFIG_DNS_POLICY" /etc/sysconfig/network/config | egrep -v "^[[:space:]]*$|^#" NETCONFIG_DNS_POLICY="" NETCONFIG_DNS_FORWARDER="dnsmasq" NETCONFIG_DNS_FORWARDER_FALLBACK="yes" NETCONFIG_DNS_STATIC_SEARCHLIST="valinor valinor" NETCONFIG_DNS_STATIC_SERVERS="127.0.0.1" Laicolasse:~ # Laicolasse:~ # tail /etc/resolv.conf | egrep -v "^[[:space:]]*$|^#" search valinor nameserver 127.0.0.1 Laicolasse:~ # The manual says: STATIC the static settings have to be merged together with the dynamic settings. STATIC_FALLBACK the static settings have to be used only, when no dynamic are available. I should like "STATIC". Laicolasse:~ # grep "NETCONFIG_DNS_STATIC_SEARCHLIST\|NETCONFIG_DNS_STATIC_SERVERS\|NETCONFIG_DNS_FORWARDER\|NETCONFIG_DNS_POLICY" /etc/sysconfig/network/config | egrep -v "^[[:space:]]*$|^#" NETCONFIG_DNS_POLICY="STATIC" NETCONFIG_DNS_FORWARDER="dnsmasq" NETCONFIG_DNS_FORWARDER_FALLBACK="yes" NETCONFIG_DNS_STATIC_SEARCHLIST="valinor valinor" NETCONFIG_DNS_STATIC_SERVERS="127.0.0.1" Laicolasse:~ # netconfig update -f Laicolasse:~ # tail /etc/resolv.conf | egrep -v "^[[:space:]]*$|^#" search valinor nameserver 127.0.0.1 Laicolasse:~ # Well, I do not see that it merges the ISP DNS with my settings One of the combos I did yesterday produced that. Ah, this one: ]> /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 Ok, if I now change NETCONFIG_DNS_POLICY to auto, I get: Laicolasse:~ # tail /etc/resolv.conf | egrep -v "^[[:space:]]*$|^#" search Laicolasse.valinor nameserver 127.0.0.1 nameserver 80.58.61.254 nameserver 80.58.61.250 Laicolasse:~ # Ah, see, the search line is broken. That's why I have to use STATIC. It is impossible to get the damn file completely right. I have: NETCONFIG_DNS_STATIC_SEARCHLIST="valinor valinor" I don't remember why that duplicate, must have been years ago. Let's try. NETCONFIG_DNS_POLICY="auto" NETCONFIG_DNS_POLICY="auto" Laicolasse:~ # tail /etc/resolv.conf | egrep -v "^[[:space:]]*$|^#" search Laicolasse.valinor nameserver 127.0.0.1 nameserver 80.58.61.254 nameserver 80.58.61.250 Laicolasse:~ # No, broken search line. Best combo: NETCONFIG_DNS_POLICY="STATIC" NETCONFIG_DNS_FORWARDER="dnsmasq" NETCONFIG_DNS_FORWARDER_FALLBACK="yes" NETCONFIG_DNS_STATIC_SEARCHLIST="valinor" NETCONFIG_DNS_STATIC_SERVERS="127.0.0.1" Laicolasse:~ # tail /etc/resolv.conf | egrep -v "^[[:space:]]*$|^#" search valinor nameserver 127.0.0.1 Laicolasse:~ # -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)