Change DNS to Coudflare 1.1.1.1 on Ubuntu 16.0.4 Server Hosted On AWS [duplicate]

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








up vote
2
down vote

favorite













This question already has an answer here:



  • How do I configure my DNS settings in Ubuntu server?

    1 answer



I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu 16.04 based server. Any ideas how can I implement it permanently?



The reason is that



/etc/resolv.conf


changes automatically and as the file states we shouldn't edit it manually.



What the best way to do so, for both ipv4 and ipv6?










share|improve this question















marked as duplicate by karel, Fabby, vidarlo, Kevin Bowen, Eric Carvalho Apr 13 at 23:51


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    2
    down vote

    favorite













    This question already has an answer here:



    • How do I configure my DNS settings in Ubuntu server?

      1 answer



    I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu 16.04 based server. Any ideas how can I implement it permanently?



    The reason is that



    /etc/resolv.conf


    changes automatically and as the file states we shouldn't edit it manually.



    What the best way to do so, for both ipv4 and ipv6?










    share|improve this question















    marked as duplicate by karel, Fabby, vidarlo, Kevin Bowen, Eric Carvalho Apr 13 at 23:51


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite












      This question already has an answer here:



      • How do I configure my DNS settings in Ubuntu server?

        1 answer



      I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu 16.04 based server. Any ideas how can I implement it permanently?



      The reason is that



      /etc/resolv.conf


      changes automatically and as the file states we shouldn't edit it manually.



      What the best way to do so, for both ipv4 and ipv6?










      share|improve this question
















      This question already has an answer here:



      • How do I configure my DNS settings in Ubuntu server?

        1 answer



      I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu 16.04 based server. Any ideas how can I implement it permanently?



      The reason is that



      /etc/resolv.conf


      changes automatically and as the file states we shouldn't edit it manually.



      What the best way to do so, for both ipv4 and ipv6?





      This question already has an answer here:



      • How do I configure my DNS settings in Ubuntu server?

        1 answer







      server dns






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 at 2:34









      ubashu

      2,23721736




      2,23721736










      asked Apr 13 at 2:03









      Ashish

      112




      112




      marked as duplicate by karel, Fabby, vidarlo, Kevin Bowen, Eric Carvalho Apr 13 at 23:51


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by karel, Fabby, vidarlo, Kevin Bowen, Eric Carvalho Apr 13 at 23:51


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          This is more or less "how do I set a static IP"



          Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.



          The relevant bit is your Name server



          How do I configure my DNS settings in Ubuntu server?



          Though in keeping with many concerns of links relevant info from that question,
          the correct file your looking for is



          /etc/network/interfaces


          and the part to modify should look similar to this



          The primary network interface
          auto eth0
          iface eth0 inet static
          address 192.168.X.X
          netmask 255.255.255.0
          gateway 192.168.X.X
          dns-nameservers 1.1.1.1


          This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.



          https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution




          To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.







          share|improve this answer



























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            This is more or less "how do I set a static IP"



            Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.



            The relevant bit is your Name server



            How do I configure my DNS settings in Ubuntu server?



            Though in keeping with many concerns of links relevant info from that question,
            the correct file your looking for is



            /etc/network/interfaces


            and the part to modify should look similar to this



            The primary network interface
            auto eth0
            iface eth0 inet static
            address 192.168.X.X
            netmask 255.255.255.0
            gateway 192.168.X.X
            dns-nameservers 1.1.1.1


            This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.



            https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution




            To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.







            share|improve this answer
























              up vote
              2
              down vote













              This is more or less "how do I set a static IP"



              Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.



              The relevant bit is your Name server



              How do I configure my DNS settings in Ubuntu server?



              Though in keeping with many concerns of links relevant info from that question,
              the correct file your looking for is



              /etc/network/interfaces


              and the part to modify should look similar to this



              The primary network interface
              auto eth0
              iface eth0 inet static
              address 192.168.X.X
              netmask 255.255.255.0
              gateway 192.168.X.X
              dns-nameservers 1.1.1.1


              This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.



              https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution




              To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.







              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                This is more or less "how do I set a static IP"



                Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.



                The relevant bit is your Name server



                How do I configure my DNS settings in Ubuntu server?



                Though in keeping with many concerns of links relevant info from that question,
                the correct file your looking for is



                /etc/network/interfaces


                and the part to modify should look similar to this



                The primary network interface
                auto eth0
                iface eth0 inet static
                address 192.168.X.X
                netmask 255.255.255.0
                gateway 192.168.X.X
                dns-nameservers 1.1.1.1


                This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.



                https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution




                To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.







                share|improve this answer












                This is more or less "how do I set a static IP"



                Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.



                The relevant bit is your Name server



                How do I configure my DNS settings in Ubuntu server?



                Though in keeping with many concerns of links relevant info from that question,
                the correct file your looking for is



                /etc/network/interfaces


                and the part to modify should look similar to this



                The primary network interface
                auto eth0
                iface eth0 inet static
                address 192.168.X.X
                netmask 255.255.255.0
                gateway 192.168.X.X
                dns-nameservers 1.1.1.1


                This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.



                https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution




                To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 13 at 3:05









                Daniel

                212




                212












                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491