Network issues - resolvconf problem












0















Internet access is available for a brief second when the browser is initiated, but after a split second, internet connection is unavailable.



Searching a bit in the forum, I found out that



dpkg-reconfigure resolvconf and service network-manager restart



resolved the problem temporaly, needed to be done after every boot.



This happended after running xflock4 with the shortcut CTRL+ALT+L. The screen went black for a minute, then became red.
Without response, I powered-off the machine manually.
Is there a permanent fix?










share|improve this question





























    0















    Internet access is available for a brief second when the browser is initiated, but after a split second, internet connection is unavailable.



    Searching a bit in the forum, I found out that



    dpkg-reconfigure resolvconf and service network-manager restart



    resolved the problem temporaly, needed to be done after every boot.



    This happended after running xflock4 with the shortcut CTRL+ALT+L. The screen went black for a minute, then became red.
    Without response, I powered-off the machine manually.
    Is there a permanent fix?










    share|improve this question



























      0












      0








      0








      Internet access is available for a brief second when the browser is initiated, but after a split second, internet connection is unavailable.



      Searching a bit in the forum, I found out that



      dpkg-reconfigure resolvconf and service network-manager restart



      resolved the problem temporaly, needed to be done after every boot.



      This happended after running xflock4 with the shortcut CTRL+ALT+L. The screen went black for a minute, then became red.
      Without response, I powered-off the machine manually.
      Is there a permanent fix?










      share|improve this question
















      Internet access is available for a brief second when the browser is initiated, but after a split second, internet connection is unavailable.



      Searching a bit in the forum, I found out that



      dpkg-reconfigure resolvconf and service network-manager restart



      resolved the problem temporaly, needed to be done after every boot.



      This happended after running xflock4 with the shortcut CTRL+ALT+L. The screen went black for a minute, then became red.
      Without response, I powered-off the machine manually.
      Is there a permanent fix?







      networking network-manager internet resolv.conf resolvconf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 5 at 3:05







      NiltonB

















      asked Jan 5 at 2:57









      NiltonBNiltonB

      32




      32






















          1 Answer
          1






          active

          oldest

          votes


















          1














          1) You shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides. If you want it to be static, run sudo dpkg-reconfigure resolvconf and answer "no" to dynamic updates. If you want to add new entries there, edit /etc/resolvconf/resolv.conf.d/base and run sudo resolvconf -u, it will append your entries and DHCP server's entries.



          2) Try to edit your /etc/network/interfaces and add your entries there, like



          auto eth0
          iface eth0 inet dhcp
          dns-search google.com
          dns-nameservers dnsserverip
          and then restart /etc/init.d/networking restart or sudo ifdown -a and sudo ifup -a



          3) Your system uses udhcp which is a very small DHCP client program. The udhcp client negotiates a lease with the DHCP server and notifies a set of scripts when a leases is obtained or lost. You can read about it's usage here or just edit this script (as you did).






          share|improve this answer
























          • This was a bigger hassle then I expected. I ended up reinstalling the system in the end. Thank you for your kind response, Mayur, but I couldn't fix it, sadly.

            – NiltonB
            Jan 5 at 20:34











          • but sometimes we have a large backup then reinstallation is the big challenge.

            – Mayur Bhandare
            Jan 7 at 6:54











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107069%2fnetwork-issues-resolvconf-problem%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          1) You shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides. If you want it to be static, run sudo dpkg-reconfigure resolvconf and answer "no" to dynamic updates. If you want to add new entries there, edit /etc/resolvconf/resolv.conf.d/base and run sudo resolvconf -u, it will append your entries and DHCP server's entries.



          2) Try to edit your /etc/network/interfaces and add your entries there, like



          auto eth0
          iface eth0 inet dhcp
          dns-search google.com
          dns-nameservers dnsserverip
          and then restart /etc/init.d/networking restart or sudo ifdown -a and sudo ifup -a



          3) Your system uses udhcp which is a very small DHCP client program. The udhcp client negotiates a lease with the DHCP server and notifies a set of scripts when a leases is obtained or lost. You can read about it's usage here or just edit this script (as you did).






          share|improve this answer
























          • This was a bigger hassle then I expected. I ended up reinstalling the system in the end. Thank you for your kind response, Mayur, but I couldn't fix it, sadly.

            – NiltonB
            Jan 5 at 20:34











          • but sometimes we have a large backup then reinstallation is the big challenge.

            – Mayur Bhandare
            Jan 7 at 6:54
















          1














          1) You shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides. If you want it to be static, run sudo dpkg-reconfigure resolvconf and answer "no" to dynamic updates. If you want to add new entries there, edit /etc/resolvconf/resolv.conf.d/base and run sudo resolvconf -u, it will append your entries and DHCP server's entries.



          2) Try to edit your /etc/network/interfaces and add your entries there, like



          auto eth0
          iface eth0 inet dhcp
          dns-search google.com
          dns-nameservers dnsserverip
          and then restart /etc/init.d/networking restart or sudo ifdown -a and sudo ifup -a



          3) Your system uses udhcp which is a very small DHCP client program. The udhcp client negotiates a lease with the DHCP server and notifies a set of scripts when a leases is obtained or lost. You can read about it's usage here or just edit this script (as you did).






          share|improve this answer
























          • This was a bigger hassle then I expected. I ended up reinstalling the system in the end. Thank you for your kind response, Mayur, but I couldn't fix it, sadly.

            – NiltonB
            Jan 5 at 20:34











          • but sometimes we have a large backup then reinstallation is the big challenge.

            – Mayur Bhandare
            Jan 7 at 6:54














          1












          1








          1







          1) You shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides. If you want it to be static, run sudo dpkg-reconfigure resolvconf and answer "no" to dynamic updates. If you want to add new entries there, edit /etc/resolvconf/resolv.conf.d/base and run sudo resolvconf -u, it will append your entries and DHCP server's entries.



          2) Try to edit your /etc/network/interfaces and add your entries there, like



          auto eth0
          iface eth0 inet dhcp
          dns-search google.com
          dns-nameservers dnsserverip
          and then restart /etc/init.d/networking restart or sudo ifdown -a and sudo ifup -a



          3) Your system uses udhcp which is a very small DHCP client program. The udhcp client negotiates a lease with the DHCP server and notifies a set of scripts when a leases is obtained or lost. You can read about it's usage here or just edit this script (as you did).






          share|improve this answer













          1) You shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides. If you want it to be static, run sudo dpkg-reconfigure resolvconf and answer "no" to dynamic updates. If you want to add new entries there, edit /etc/resolvconf/resolv.conf.d/base and run sudo resolvconf -u, it will append your entries and DHCP server's entries.



          2) Try to edit your /etc/network/interfaces and add your entries there, like



          auto eth0
          iface eth0 inet dhcp
          dns-search google.com
          dns-nameservers dnsserverip
          and then restart /etc/init.d/networking restart or sudo ifdown -a and sudo ifup -a



          3) Your system uses udhcp which is a very small DHCP client program. The udhcp client negotiates a lease with the DHCP server and notifies a set of scripts when a leases is obtained or lost. You can read about it's usage here or just edit this script (as you did).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 5 at 11:19









          Mayur BhandareMayur Bhandare

          41128




          41128













          • This was a bigger hassle then I expected. I ended up reinstalling the system in the end. Thank you for your kind response, Mayur, but I couldn't fix it, sadly.

            – NiltonB
            Jan 5 at 20:34











          • but sometimes we have a large backup then reinstallation is the big challenge.

            – Mayur Bhandare
            Jan 7 at 6:54



















          • This was a bigger hassle then I expected. I ended up reinstalling the system in the end. Thank you for your kind response, Mayur, but I couldn't fix it, sadly.

            – NiltonB
            Jan 5 at 20:34











          • but sometimes we have a large backup then reinstallation is the big challenge.

            – Mayur Bhandare
            Jan 7 at 6:54

















          This was a bigger hassle then I expected. I ended up reinstalling the system in the end. Thank you for your kind response, Mayur, but I couldn't fix it, sadly.

          – NiltonB
          Jan 5 at 20:34





          This was a bigger hassle then I expected. I ended up reinstalling the system in the end. Thank you for your kind response, Mayur, but I couldn't fix it, sadly.

          – NiltonB
          Jan 5 at 20:34













          but sometimes we have a large backup then reinstallation is the big challenge.

          – Mayur Bhandare
          Jan 7 at 6:54





          but sometimes we have a large backup then reinstallation is the big challenge.

          – Mayur Bhandare
          Jan 7 at 6:54


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107069%2fnetwork-issues-resolvconf-problem%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Human spaceflight

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

          File:DeusFollowingSea.jpg