{"id":645,"date":"2020-04-23T05:53:41","date_gmt":"2020-04-23T05:53:41","guid":{"rendered":"http:\/\/labiol.xyz\/?p=645"},"modified":"2020-04-23T05:53:41","modified_gmt":"2020-04-23T05:53:41","slug":"dns-in-opensuse","status":"publish","type":"post","link":"https:\/\/www.labiol.xyz\/index.php\/2020\/04\/23\/dns-in-opensuse\/","title":{"rendered":"DNS in openSuSE"},"content":{"rendered":"\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1213\" height=\"561\" src=\"\">In newest linux distro you should&#8217;t modify the \/etc\/resolv.conf file. All changes in this file would be removed after system restart or network service restart. <\/p>\n\n\n\n<p>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. <\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1213\" height=\"561\" src=\"\">There is several way to do change in this file:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>change network settings by using: <code>yast lan <\/code><\/li><li>change some other settings by editing: <code>yast sysconfig<\/code><\/li><li>or directly using sysconfig from cmd like this: <strong><code>yast sysconfig set NETCONFIG_DNS_STATIC_SERVERS=\"8.8.8.8 8.8.4.4\"<\/code><\/strong><\/li><\/ul>\n\n\n\n<p>If you do the changes in yast, than you can check what files was truly changed by checking the last btrfs snapshots: <code>yast snapper<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/3.127.215.50\/wp-content\/uploads\/2020\/04\/network_change_snapshot-1024x474.jpg\" alt=\"\" class=\"wp-image-647\" width=\"867\" height=\"401\" srcset=\"https:\/\/www.labiol.xyz\/wp-content\/uploads\/2020\/04\/network_change_snapshot-1024x474.jpg 1024w, https:\/\/www.labiol.xyz\/wp-content\/uploads\/2020\/04\/network_change_snapshot-300x139.jpg 300w, https:\/\/www.labiol.xyz\/wp-content\/uploads\/2020\/04\/network_change_snapshot-768x355.jpg 768w, https:\/\/www.labiol.xyz\/wp-content\/uploads\/2020\/04\/network_change_snapshot.jpg 1213w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><\/figure>\n\n\n\n<p>Summarizing, newer use directly \/etc\/resolv.conf. Use your distro mgmt tools, and in case of openSUSE this tool is usually yast. Good luck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In newest linux distro you should&#8217;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 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-645","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=645"}],"version-history":[{"count":2,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/645\/revisions"}],"predecessor-version":[{"id":648,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/645\/revisions\/648"}],"wp:attachment":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}