How to configure 17.10 desktop's systemd-resolve dns via terminal?

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








up vote
2
down vote

favorite












I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?










share|improve this question

























    up vote
    2
    down vote

    favorite












    I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?










      share|improve this question













      I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?







      systemd-resolved






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 13 at 16:10









      Aero Windwalker

      4691514




      4691514




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Open the file /etc/systemd/resolved.conf in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved to activate the changes.



          Common options to change in that file are in the [Resolve] section, for example:



          DNS=192.168.1.1
          Domains=mynet


          Will set your dns server and search domain.



          The resolved.conf manual page is a good source for information on how to edit the configuration file.






          share|improve this answer




















            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1024712%2fhow-to-configure-17-10-desktops-systemd-resolve-dns-via-terminal%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            Open the file /etc/systemd/resolved.conf in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved to activate the changes.



            Common options to change in that file are in the [Resolve] section, for example:



            DNS=192.168.1.1
            Domains=mynet


            Will set your dns server and search domain.



            The resolved.conf manual page is a good source for information on how to edit the configuration file.






            share|improve this answer
























              up vote
              2
              down vote













              Open the file /etc/systemd/resolved.conf in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved to activate the changes.



              Common options to change in that file are in the [Resolve] section, for example:



              DNS=192.168.1.1
              Domains=mynet


              Will set your dns server and search domain.



              The resolved.conf manual page is a good source for information on how to edit the configuration file.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                Open the file /etc/systemd/resolved.conf in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved to activate the changes.



                Common options to change in that file are in the [Resolve] section, for example:



                DNS=192.168.1.1
                Domains=mynet


                Will set your dns server and search domain.



                The resolved.conf manual page is a good source for information on how to edit the configuration file.






                share|improve this answer












                Open the file /etc/systemd/resolved.conf in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved to activate the changes.



                Common options to change in that file are in the [Resolve] section, for example:



                DNS=192.168.1.1
                Domains=mynet


                Will set your dns server and search domain.



                The resolved.conf manual page is a good source for information on how to edit the configuration file.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 13 at 16:32









                Sebastian Stark

                4,708938




                4,708938



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024712%2fhow-to-configure-17-10-desktops-systemd-resolve-dns-via-terminal%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491