UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Change DNS settings on UT Devices

    Scheduled Pinned Locked Moved Support
    dns settingswifi
    11 Posts 5 Posters 1.4k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • M Offline
        metalmyles
        last edited by

        Hello,

        Is it possible on Ubuntu Touch devices to change your DNS settings on your device's WiFi connection. I know how to do this on iOS and LineageOS (Android) but I don't know how to find a way to do this on UT. Thanks.

        arubislanderA C 2 Replies Last reply Reply Quote 0
        • arubislanderA Offline
          arubislander @metalmyles
          last edited by arubislander

          @metalmyles Hi.

          I moved this topic to the Support category, where it is more likely to be seen by someone who could help.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            metalmyles @arubislander
            last edited by

            @arubislander Thank you

            1 Reply Last reply Reply Quote 0
            • C Offline
              Capsia @metalmyles
              last edited by

              @metalmyles Hello!
              Yes, you can do it, but it is a bit hidden in UT, you'll need to use the terminal and it only works for wifi connections not cellular. You can check this thread:

              https://forums.ubports.com/topic/3857/set-dns-in-ut/10?_=1625478487563

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                metalmyles @Capsia
                last edited by metalmyles

                @capsia

                Thank you for the response. I haven't tested this out yet but just to be clear, are these the commands you are referring to in the terminal we need to copy with the DNS of our choice? I have including a screenshot below:

                I am on other social network trying to help someone who wants to block ads on their browser and I know a DNS that does just that. I am going to save a custom DNS to easily copy and paste to block ads. This is for NextDNS using IPv4:

                nmcli c modify 628f4269-3a24-7858-e4b0-3765d485ecda ipv4.dns "45.90.28.243, 45.90.30.243"
                nmcli c modify 628f4269-3a24-7858-e4b0-3765d485ecda ipv4.ignore-auto-dns yes

                UT DNS Settings.png

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  metalmyles @metalmyles
                  last edited by metalmyles

                  @Capsia

                  After I use root and paste the command above, i get this result:

                  Error: Unknown connection '628f4269-3a24-7858-e4b0-3765d485ecda'.

                  Any idea what is going on? I am connected to WiFi.

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Capsia @metalmyles
                    last edited by Capsia

                    @metalmyles The id 628f4269-3a24-7858-e4b0-3765d485ecda should be replaced with the id of the network that you want to change the settings to. You can use the command nmcli c to list all networks with their ids. When you found the id, you can run the two commands to change the dns for that network. If you want to have adblocking, I think the suggested way to do that on UT would using the UAdblock app from the Openstore. This will block ads also on mobile connections.

                    M 1 Reply Last reply Reply Quote 1
                    • M Offline
                      metalmyles @Capsia
                      last edited by

                      @capsia Thank you for the clarity

                      I just installed the app. I'll check it out.

                      AppLeeA 1 Reply Last reply Reply Quote 1
                      • AppLeeA Offline
                        AppLee @metalmyles
                        last edited by

                        @metalmyles
                        Just so you know.
                        uAdBlock uses blacklists to filter out the undesired IP addresses.

                        If you have trouble (ads still displaying), try to check that uAdBlock is still active and that you have selected blacklists. If none is used then it won't work.
                        And be careful in selecting those lists, some of them will totally block out social medias so you'll have to try them out to figure what is the best combo for your needs.

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          metalmyles @AppLee
                          last edited by metalmyles

                          @applee

                          Thank you for the information. I appreciate it.

                          I let my peer know about uAdBlock to them personally and here is what they said below:

                          "I have UAdblock installed but it does not seem to stop the adverts.

                          "My main concern is that my phone is listening in on me. Not something that I thought was possible with linux and duck duck go, but I will try your suggestions."

                          Any other suggestions? I was trying to give them another way to block ads via NextDNS but I don't have a better answer other than get a faraday bag to put your phone away when not in use. As far as I know UT is not sending information to google, or a big tech corp.

                          KenedaK 1 Reply Last reply Reply Quote 0
                          • KenedaK Offline
                            Keneda @metalmyles
                            last edited by

                            @metalmyles said in Change DNS settings on UT Devices:

                            As far as I know UT is not sending information to google, or a big tech corp.

                            It doesn't indeed.

                            2015-2023 : Meizu MX4 ☠️⚰️✝️
                            2023-2024 : Nexus 5 ☠️⚰️✝️
                            2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                            πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post