[DNS] The DNS list doesn't match...

https://paste.opensuse.org/32916691
https://paste.opensuse.org/86005939
https://paste.opensuse.org/11642462

It seems the order expressed in the /etc/sysconfig/network/config file at the NETCONFIG_DNS_STATIC_SERVERS directive are inverted in /etc/resolv.conf file :{
Even if I set the one that is interresting for me 192.168.0.3 at the end of the list each time the list is not ordered as expected :{

I tried netconfig update -f nothing changes…

I need 192.168.0.3 in order to resolve the “local” hosts managed by the “local” DNS server on 192.168.0.3.

How do you think I could fix it without manually set the 192.168.0.3 at the first in the list in /etc/resolv.conf ?

There are more DNS-related NETCONFIG variables that can be set that might help with ordering here. Refer to

man netconfig

and just in case this thread is relevant…
https://forums.opensuse.org/showthread.php/519411-sort-order-of-DNS-nameservers-in-resolv-conf

Or,
Read the comments in the /etc/resolv.conf file.
Correct procedures are all there…

TSU

Any reason to use screenshots for what just needed simple text copy-paste and would have been easier to answer and comment?

It seems the order expressed in the /etc/sysconfig/network/config file at the NETCONFIG_DNS_STATIC_SERVERS directive are inverted in /etc/resolv.conf file :{

No, it is not inverted. It would be quite easy to demonstrate if you inserted both files as text here.

Anyway, to investigate why system chooses this specific order at least /etc/sysconfig/network/config is needed, e.g. as output of

egrep -v '^(|#.*)$' /etc/sysconfig/network/config

as well as information whether you are using wicked or NetworkManager or something else.