How to make name server address permanent in /etc/resolv.conf even after system reboot?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
-1
down vote

favorite












I changed nameserver in /etc/resolv.conf and after a system reboot it resets the nameserver back to what it was.



I am using linux mint 19 (Cinnamon).



This file is managed by man:systemd-resolved(8). Do not edit.



#



This is a dynamic resolv.conf file for connecting local clients to the



internal DNS stub resolver of systemd-resolved. This file lists all



configured search domains.



#



Run "systemd-resolve --status" to see details about the uplink DNS servers



currently in use.



#



Third party programs must not access this file directly, but only through the



symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,



replace this symlink by a static file or a different symlink.



#



See man:systemd-resolved.service(8) for details about the supported modes of



operation for /etc/resolv.conf.



nameserver 8.8.8.8
nameserver 8.8.4.4



this is my file before i reboot my system and after reboot the nameserver changes







share|improve this question





















  • /etc/resolv.conf maybe generated from other files. Which distro and version are you using?
    – muru
    Jul 20 at 7:41










  • Please add the contents of your /etc/resolv.conf to your question. (Format it as code by selecting it and choosing the button from the editing menu.) Obfuscate if you must must make sure you tell us what you've redacted.
    – roaima
    Jul 20 at 7:42











  • i am using linux mint 19 cinnamon
    – bishal
    Jul 20 at 7:43










  • Please paste text not images of text.
    – roaima
    Jul 20 at 7:50










  • You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System settings in Mint. Alternatively do it via editing files, as per wiki.debian.org/NetworkConfiguration with addition of "dns-addresses 8.8.8.8 8.8.4.4" (or your preferred addresses to /etc/network/interfaces
    – guiverc
    Jul 20 at 7:51
















up vote
-1
down vote

favorite












I changed nameserver in /etc/resolv.conf and after a system reboot it resets the nameserver back to what it was.



I am using linux mint 19 (Cinnamon).



This file is managed by man:systemd-resolved(8). Do not edit.



#



This is a dynamic resolv.conf file for connecting local clients to the



internal DNS stub resolver of systemd-resolved. This file lists all



configured search domains.



#



Run "systemd-resolve --status" to see details about the uplink DNS servers



currently in use.



#



Third party programs must not access this file directly, but only through the



symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,



replace this symlink by a static file or a different symlink.



#



See man:systemd-resolved.service(8) for details about the supported modes of



operation for /etc/resolv.conf.



nameserver 8.8.8.8
nameserver 8.8.4.4



this is my file before i reboot my system and after reboot the nameserver changes







share|improve this question





















  • /etc/resolv.conf maybe generated from other files. Which distro and version are you using?
    – muru
    Jul 20 at 7:41










  • Please add the contents of your /etc/resolv.conf to your question. (Format it as code by selecting it and choosing the button from the editing menu.) Obfuscate if you must must make sure you tell us what you've redacted.
    – roaima
    Jul 20 at 7:42











  • i am using linux mint 19 cinnamon
    – bishal
    Jul 20 at 7:43










  • Please paste text not images of text.
    – roaima
    Jul 20 at 7:50










  • You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System settings in Mint. Alternatively do it via editing files, as per wiki.debian.org/NetworkConfiguration with addition of "dns-addresses 8.8.8.8 8.8.4.4" (or your preferred addresses to /etc/network/interfaces
    – guiverc
    Jul 20 at 7:51












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I changed nameserver in /etc/resolv.conf and after a system reboot it resets the nameserver back to what it was.



I am using linux mint 19 (Cinnamon).



This file is managed by man:systemd-resolved(8). Do not edit.



#



This is a dynamic resolv.conf file for connecting local clients to the



internal DNS stub resolver of systemd-resolved. This file lists all



configured search domains.



#



Run "systemd-resolve --status" to see details about the uplink DNS servers



currently in use.



#



Third party programs must not access this file directly, but only through the



symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,



replace this symlink by a static file or a different symlink.



#



See man:systemd-resolved.service(8) for details about the supported modes of



operation for /etc/resolv.conf.



nameserver 8.8.8.8
nameserver 8.8.4.4



this is my file before i reboot my system and after reboot the nameserver changes







share|improve this question













I changed nameserver in /etc/resolv.conf and after a system reboot it resets the nameserver back to what it was.



I am using linux mint 19 (Cinnamon).



This file is managed by man:systemd-resolved(8). Do not edit.



#



This is a dynamic resolv.conf file for connecting local clients to the



internal DNS stub resolver of systemd-resolved. This file lists all



configured search domains.



#



Run "systemd-resolve --status" to see details about the uplink DNS servers



currently in use.



#



Third party programs must not access this file directly, but only through the



symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,



replace this symlink by a static file or a different symlink.



#



See man:systemd-resolved.service(8) for details about the supported modes of



operation for /etc/resolv.conf.



nameserver 8.8.8.8
nameserver 8.8.4.4



this is my file before i reboot my system and after reboot the nameserver changes









share|improve this question












share|improve this question




share|improve this question








edited Jul 20 at 7:53
























asked Jul 20 at 7:39









bishal

11




11











  • /etc/resolv.conf maybe generated from other files. Which distro and version are you using?
    – muru
    Jul 20 at 7:41










  • Please add the contents of your /etc/resolv.conf to your question. (Format it as code by selecting it and choosing the button from the editing menu.) Obfuscate if you must must make sure you tell us what you've redacted.
    – roaima
    Jul 20 at 7:42











  • i am using linux mint 19 cinnamon
    – bishal
    Jul 20 at 7:43










  • Please paste text not images of text.
    – roaima
    Jul 20 at 7:50










  • You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System settings in Mint. Alternatively do it via editing files, as per wiki.debian.org/NetworkConfiguration with addition of "dns-addresses 8.8.8.8 8.8.4.4" (or your preferred addresses to /etc/network/interfaces
    – guiverc
    Jul 20 at 7:51
















  • /etc/resolv.conf maybe generated from other files. Which distro and version are you using?
    – muru
    Jul 20 at 7:41










  • Please add the contents of your /etc/resolv.conf to your question. (Format it as code by selecting it and choosing the button from the editing menu.) Obfuscate if you must must make sure you tell us what you've redacted.
    – roaima
    Jul 20 at 7:42











  • i am using linux mint 19 cinnamon
    – bishal
    Jul 20 at 7:43










  • Please paste text not images of text.
    – roaima
    Jul 20 at 7:50










  • You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System settings in Mint. Alternatively do it via editing files, as per wiki.debian.org/NetworkConfiguration with addition of "dns-addresses 8.8.8.8 8.8.4.4" (or your preferred addresses to /etc/network/interfaces
    – guiverc
    Jul 20 at 7:51















/etc/resolv.conf maybe generated from other files. Which distro and version are you using?
– muru
Jul 20 at 7:41




/etc/resolv.conf maybe generated from other files. Which distro and version are you using?
– muru
Jul 20 at 7:41












Please add the contents of your /etc/resolv.conf to your question. (Format it as code by selecting it and choosing the button from the editing menu.) Obfuscate if you must must make sure you tell us what you've redacted.
– roaima
Jul 20 at 7:42





Please add the contents of your /etc/resolv.conf to your question. (Format it as code by selecting it and choosing the button from the editing menu.) Obfuscate if you must must make sure you tell us what you've redacted.
– roaima
Jul 20 at 7:42













i am using linux mint 19 cinnamon
– bishal
Jul 20 at 7:43




i am using linux mint 19 cinnamon
– bishal
Jul 20 at 7:43












Please paste text not images of text.
– roaima
Jul 20 at 7:50




Please paste text not images of text.
– roaima
Jul 20 at 7:50












You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System settings in Mint. Alternatively do it via editing files, as per wiki.debian.org/NetworkConfiguration with addition of "dns-addresses 8.8.8.8 8.8.4.4" (or your preferred addresses to /etc/network/interfaces
– guiverc
Jul 20 at 7:51




You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System settings in Mint. Alternatively do it via editing files, as per wiki.debian.org/NetworkConfiguration with addition of "dns-addresses 8.8.8.8 8.8.4.4" (or your preferred addresses to /etc/network/interfaces
– guiverc
Jul 20 at 7:51










2 Answers
2






active

oldest

votes

















up vote
0
down vote













I think your question is answered here



The link says that you "shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides."






share|improve this answer




























    up vote
    0
    down vote













    You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System Settings in Mint.



    Alternatively do it via editing files, as per https://wiki.debian.org/NetworkConfiguration with the addition of



    "dns-addresses 8.8.8.8 8.8.4.4"


    (for google DNS; change to your preferred DNS addresses) in



    /etc/network/interfaces





    share|improve this answer





















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      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',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457364%2fhow-to-make-name-server-address-permanent-in-etc-resolv-conf-even-after-system%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      I think your question is answered here



      The link says that you "shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides."






      share|improve this answer

























        up vote
        0
        down vote













        I think your question is answered here



        The link says that you "shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides."






        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          I think your question is answered here



          The link says that you "shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides."






          share|improve this answer













          I think your question is answered here



          The link says that you "shouldn't manually update your resolv.conf, because all changes will be overwritten by data that your local DHCP server provides."







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jul 20 at 7:53









          John Smith

          92857




          92857






















              up vote
              0
              down vote













              You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System Settings in Mint.



              Alternatively do it via editing files, as per https://wiki.debian.org/NetworkConfiguration with the addition of



              "dns-addresses 8.8.8.8 8.8.4.4"


              (for google DNS; change to your preferred DNS addresses) in



              /etc/network/interfaces





              share|improve this answer

























                up vote
                0
                down vote













                You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System Settings in Mint.



                Alternatively do it via editing files, as per https://wiki.debian.org/NetworkConfiguration with the addition of



                "dns-addresses 8.8.8.8 8.8.4.4"


                (for google DNS; change to your preferred DNS addresses) in



                /etc/network/interfaces





                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System Settings in Mint.



                  Alternatively do it via editing files, as per https://wiki.debian.org/NetworkConfiguration with the addition of



                  "dns-addresses 8.8.8.8 8.8.4.4"


                  (for google DNS; change to your preferred DNS addresses) in



                  /etc/network/interfaces





                  share|improve this answer













                  You should be able to make it permanent via NetworkManager applet on Cinnamon (sorry I don't use it so have no idea), or your System Settings in Mint.



                  Alternatively do it via editing files, as per https://wiki.debian.org/NetworkConfiguration with the addition of



                  "dns-addresses 8.8.8.8 8.8.4.4"


                  (for google DNS; change to your preferred DNS addresses) in



                  /etc/network/interfaces






                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered Jul 20 at 7:54









                  guiverc

                  17815




                  17815






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457364%2fhow-to-make-name-server-address-permanent-in-etc-resolv-conf-even-after-system%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      Peggy Mitchell

                      Palaiologos

                      The Forum (Inglewood, California)