In newest linux distro you should’t modify the /etc/resolv.conf file. All changes in this file would be removed after system restart or network service restart.
In openSuSE (and SuSE as well) you should use file /etc/sysconfig/network/config instead. Of course there is no need to change this file manually.
There is several way to do change in this file:
- change network settings by using:
yast lan
- change some other settings by editing:
yast sysconfig
- or directly using sysconfig from cmd like this:
yast sysconfig set NETCONFIG_DNS_STATIC_SERVERS="8.8.8.8 8.8.4.4"
If you do the changes in yast, than you can check what files was truly changed by checking the last btrfs snapshots: yast snapper
Summarizing, newer use directly /etc/resolv.conf. Use your distro mgmt tools, and in case of openSUSE this tool is usually yast. Good luck.
No Comments