Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Permanently change the DNS in Android

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Permanently change the DNS in Android

    Hi.

    In google we find multiple old methods (files to edit) to change the DNS in Android firmwares, but those methods don't seem to work in latest versions of Android (9 and 10).

    Which files do we have to edit to always use the CloudFlare DNS servers (1.1.1.1)?


    The DNS forwarder app worked great previously, but now it requires to be manually enabled every time we boot the tvbox. If we could just edit a file it would be great.


    Thanks!

    #2
    Hmmm..,
    Why not change the DNS address into your home router?
    or
    Use ''DNSChanger'' app to force all apps to use your prefered DNS address (using fake vpn client use)

    Alternative to Cloadflare... why not use:
    Adguard , Norton , comodo , dyn , fooldns , greenteam , opendns.. just to name a few
    Or enable firefox option DNS over HTTPS

    Anyway.. just a few thoughts

    Comment


      #3
      Any updates on this topic, please? Some internet service providers have been known to record DNS queries and share them with third parties. Some DNS services are also faster than others, depending on how close you are to their servers, which can impact how quickly websites load. The process for setting the default DNS server for Android depends on the Android version your phone/tablet is running. It's a simple process on newer devices, but older versions of Android make it more difficult. I used 28Msec when I was looking for the best available web hosting, and I must say I was very pleased with the service that I got.
      Last edited by ColinGill; 03-15-2021, 19:34.

      Comment


        #4
        Originally posted by ColinGill View Post
        Any updates on this topic, please?
        What do you expect? The best (and permanent) option is already at post #2. Just change DNS in your router.

        Comment


          #5
          mmh what about DNS settings in build.prop? sure he could set in Router but that will affect any device connected as long as it is not limited to specific device. In my case I cant assign DNS to specific device connected, e.g.: device 1, device 2, device 3 connected to the same router and all of them will use the same....

          How about this:

          # dns settings
          # 8.8.8.8 Google
          # 8.8.4.4 Google
          # 208.67.222.222 OpenDNS
          # 208.67.220.220 OpenDNS
          # 208.67.222.123 OpenDNS Familyshield
          # 208.67.220.123 OpenDNS Familyshield

          net.rmnet0.dns1=208.67.222.222
          net.rmnet0.dns2=208.67.220.220
          net.dns1=208.67.222.222
          net.dns2=208.67.220.220

          I think that you also need to add/edit the file /etc/resolve.conf. Mine contains the following:

          # 8.8.8.8 Google
          # 8.8.4.4 Google
          # 208.67.222.222 OpenDNS
          # 208.67.220.220 OpenDNS
          # 208.67.222.123 OpenDNS Familyshield
          # 208.67.220.123 OpenDNS Familyshield

          nameserver 208.67.222.222
          nameserver 208.67.220.220# dns settings


          https://forum.xda-developers.com/t/q...t-app.1909019/

          I am using Suisse one in my router....

          Comment


            #6
            If you are running TV box with Android 9 + ROOT + Init.d then you can create boot script with this:

            Code:
            #!/system/bin/sh
            settings put global private_dns_mode hostname
            settings put global private_dns_specifier dns.adguard.com
            The dns address is DNS-over-TLS for private dns mode on android 9 (and above) and you can substitute any DoT address (the example= dns.adguard.com).

            This code can also be used over ADB or directly input through terminal, even without a rooted device.

            Comment


              #7
              Cool.. this topic is going more and more advanced

              Alternative...
              Install Netguard from F-fdroid ( Netguard is a firewall.. blocking app from calling home or recieving ads )
              Now go-to anvanced ''enable blocking system'' apps
              Now choose what apps have access to the internet
              Now go-to Backup and import ''adblocking'' host file
              Now go-to adavanced enable ''traffic filtering''
              Under DNS add your own ''adblocking'' dns Ip number
              Now enable the Netguard

              Now your chance of seeing ads...are quite low

              I forgot to state.. that DNS adblock (IP) filters
              Can also filter P0rn, Gambeling and mallware... quite handy, if you have kids arround

              Comment

              Working...
              X