{"id":1921,"date":"2019-09-01T14:09:49","date_gmt":"2019-09-01T22:09:49","guid":{"rendered":"http:\/\/wonghoi.humgar.com\/blog\/?p=1921"},"modified":"2019-09-22T14:34:15","modified_gmt":"2019-09-22T22:34:15","slug":"windscribe-linux-breaks-internet-messed-up-dns-resolution-on-first-use","status":"publish","type":"post","link":"https:\/\/wonghoi.humgar.com\/blog\/2019\/09\/01\/windscribe-linux-breaks-internet-messed-up-dns-resolution-on-first-use\/","title":{"rendered":"Windscribe Linux breaks internet (messed up DNS resolution) on first use"},"content":{"rendered":"<p>I lost the internet (actually just DNS not resolving correctly) after installing Winscribe for Linux and disconnecting the session. <a href=\"https:\/\/github.com\/hkuchampudi\/Windscribe\/issues\/3\">WTF windscribe<\/a>! I know it&#8217;s beta version, but at least you should check if it bricks people&#8217;s internet after a fresh install and first use!<\/p>\n<p>Turns out that on first connection, it re-binds \/etc\/resolv.conf to\u00a0\/run\/<a href=\"https:\/\/en.wikipedia.org\/wiki\/Resolvconf\">resolvconf<\/a>\/resolv.conf which has this line:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># Generated by resolvconf\r\nnameserver 10.255.255.2<\/pre>\n<p>So like systemd-resolve, Windscribe lets resolvconf steal the DNS redirection that&#8217;s supposed to go straight to my router to an intermediary 10.255.255.2 that doesn&#8217;t do the job! Aargh!<\/p>\n<p>To fix it (needs to be done every time after a Windscribe connection, so I&#8217;m getting rid of this lamely written Windscribe CLI for now), remove the symlink \/etc\/resolv.conf:<\/p>\n<pre><code>sudo rm \/etc\/resolv.conf\r\n<\/code><\/pre>\n<p>and restart NetworkManager<\/p>\n<pre><code>sudo systemctl restart NetworkManager\r\n<\/code><\/pre>\n<p>so NetworkManager will re-generate \/etc\/resolv.conf directly (no symlink) with the correct name server from the GUI config program (in my case, automatically obtained from my router).<\/p>\n<p>Turns out it&#8217;s a common scene that in Linux, many DNS resolution program <a href=\"https:\/\/www.ctrl.blog\/entry\/resolvconf-tutorial.html\">fight over the control over \/etc\/resolv.conf<\/a>. NetworkManager kicks in after you disabled the rest.<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1921\" class=\"pvc_stats all  \" data-element-id=\"1921\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I lost the internet (actually just DNS not resolving correctly) after installing Winscribe for Linux and disconnecting the session. WTF windscribe! I know it&#8217;s beta version, but at least you should check if it bricks people&#8217;s internet after a fresh &hellip; <a href=\"https:\/\/wonghoi.humgar.com\/blog\/2019\/09\/01\/windscribe-linux-breaks-internet-messed-up-dns-resolution-on-first-use\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1921\" class=\"pvc_stats all  \" data-element-id=\"1921\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[39,6],"tags":[],"class_list":["post-1921","post","type-post","status-publish","format-standard","hentry","category-linux","category-note-to-self"],"_links":{"self":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/comments?post=1921"}],"version-history":[{"count":3,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1921\/revisions"}],"predecessor-version":[{"id":1976,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1921\/revisions\/1976"}],"wp:attachment":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/media?parent=1921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/categories?post=1921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/tags?post=1921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}