rethink-app icon indicating copy to clipboard operation
rethink-app copied to clipboard

"No internet" after restart and system dns

Open GambaJo opened this issue 2 years ago • 22 comments

I use RethinkDNS on 2 Samsung devices and I have the same problem on both devices. I choose the option "System DNS". When I restart my devices RethinkDNS show me the status "no internet".

My workaround is, that after a restart I choose the "Rethink DNS" option, then I hit the refresh button (in the upper right corner of the DNS section). Then I choose the "System DNS" option and hit the refresh button again. After this, I have internet access.

It seems to me, like RethinkDNS has problems with System DNS.

grafik

GambaJo avatar Jun 03 '24 12:06 GambaJo

There were problems with System DNS in v055c up until v055e. Can you check About UI in Rethink and scroll to the bottom and tell us which version it shows you?

ignoramous avatar Jun 03 '24 22:06 ignoramous

There were problems with System DNS in v055c up until v055e. Can you check About UI in Rethink and scroll to the bottom and tell us which version it shows you?

vv0.5.5m (fdroid)

GambaJo avatar Jun 04 '24 08:06 GambaJo

I have this problem on 3 different devices today with 3 different versions of Rethink, v055a, v055j and v055m (all F-Droid), home and mobile network. First I thought there is a failure of my internet connection, but here on my Linux laptop everything is fine, directly connected to the Fritzbox with Adguard DNS servers set as default there. I also tried to switch to system DNS and back to RDNS+ in Rethink on the 3 devices, no solution. Is it possible that the provider (Vodafone) blocks Rethink now?

Edit: Now, 3 hours later, the connection is back on all 3 devices. Absolutely don't know, what the problem was.

Kamika242 avatar Jun 12 '24 07:06 Kamika242

3 hours later, the connection is back on all 3 devices. Absolutely don't know, what the problem was.

Usually DNS Logss should show errors when something like this happens. Each entry also shows which upstream resolver was used and whether it worked or not.

ignoramous avatar Jun 17 '24 09:06 ignoramous

Then I choose the "System DNS" option and hit the refresh button again. After this, I have internet access.

It seems to me, like RethinkDNS has problems with System DNS.

@GambaJo sorry, I'm confused. If System DNS works after you switch to it, how is it a problem with System DNS? You mean Rethink DNS has problems?

ignoramous avatar Jun 17 '24 09:06 ignoramous

If System DNS works after you switch to it, how is it a problem with System DNS? You mean Rethink DNS has problems?

Yes. Only WiFi is on, Mobile internet connection is off. I choose the option "System DNS" in Rethink DNS and restart my phone. After it started, Rethink DNS shows me "no internet".

grafik

So I tried another dns option (Rethink DNS) in the Rethink DNS app. Then I have internet connection. When I switch back to the option "System DNS", I have still internet connection.

grafik

BUT: When I restart my phone (or turn WiFi off an on again), Rethink DNS shows me "no internet" (see first image)

So everytime I restart my phone or turn my wifi off and on, I have to go into the dns setting of Rethink DNS, choose the Rethink DNS option, refresh, then choose the System DNS option and refresh again. Or disable the Rethink DNS app. Otherwise after every restart Rehink DNS cuts my internet connection.

GambaJo avatar Jun 17 '24 12:06 GambaJo

When you hit this "no internet" issue, what do you see in DNS Log? Tap on any of the failing queries and look at the footer of the bottomsheet that comes up to see if it shows any error msg.

If not, if you're technical enough, set Rethink in Very verbose mode (from Configure -> Settings -> Log level) and capture adb logcat at the time this issue (when you switch off wifi and turn it back in again but it keeps showing "no internet" and never auto-recovers from it) happens and email it to us (mz at celzero dot com)?

In the meanwhile, I'll also try to reproduce this issue on v055n. Have I got the steps right?

  1. Use System DNS.
  2. Put Android on airplane mode.
  3. Restart.
  4. Connect to WiFi
  5. Notice there is "no internet" and Rethink does not auto-recover unless Rethink is STOP/START again or refresh icon is tapped.

ignoramous avatar Jun 17 '24 13:06 ignoramous

5. Notice there is "no internet" and Rethink does not auto-recover unless Rethink is STOP/START again or refresh icon is tapped.

Refresh is not enough. I have to choose an other dns server (like Rethink DNS) first, refresh, and then go back to System DNS and refresh.

I send you the logs via mail.

I noticed something strange:

I found this blocked entry img0:

grafik

But this app is bypassed img1:

grafik

This is a web site I tried to open img2:

grafik

GambaJo avatar Jun 17 '24 16:06 GambaJo

From when System DNS starts working after you switch over to another DNS and/or "refresh", can you post a screenshot, please. I am interested in the IP address of the resolver (which in the screenshot that you shared above is system.[2a02:8071:59c1:...:5ea]:53, the IP that did not work).

Thanks for the logs, I'll take a look and get back.

I noticed something strange: I found this blocked entry

We need to not show it as "Error". We'll fix the label. Please see: #1554

ignoramous avatar Jun 17 '24 18:06 ignoramous

I am interested in the IP address of the resolver (which in the screenshot that you shared above is system.

Where can I find this?

I made a crappy video: https://youtu.be/3M4TZyeZ2EI It starts with a reboot of my phone (I have to cover it short, because of my PIN). Then I open Rethink DNS. You can see, System DNS is set and there is no internet. Then I choose another DNS Server, refresh, and choose System DNS and refresh -> I have internet connection (can open a website). Then I restart my phone, try to open the same website, but it only shows the ofline version. Then I open Rethink DNS -> no internet. And I can restart the whole process (another dna, system dns, ...)

GambaJo avatar Jun 18 '24 13:06 GambaJo

The issue is, the network (FritzBox?) reports both IPv6 and IPv4 DNS endpoints, but never responds over IPv6. Unexpectedly, the network reports as being single-stack and having just the IPv4 routes.

There were a couple issues why Rethink did not auto-recover:

  • Tapping on Refresh wasn't emptying out "Protected" IPs like the ones from System DNS.
  • Disconfirming failing IPs from DNS53 was erroneous (disconfirms were expecting IPs whereas DNS53 was sending it IP:Port).

(also see linked commits)

I am interested in the IP address of the resolver (which in the screenshot that you shared above is system.

Where can I find this?

In the bottomsheet in DNS Logs, just below where it shows IP address / "SEND_FAIL" and the like.

ignoramous avatar Jun 21 '24 17:06 ignoramous

When you hit this "no internet" issue, what do you see in DNS Log? Tap on any of the failing queries and look at the footer of the bottomsheet that comes up to see if it shows any error msg.

If not, if you're technical enough, set Rethink in Very verbose mode (from Configure -> Settings -> Log level) and capture adb logcat at the time this issue (when you switch off wifi and turn it back in again but it keeps showing "no internet" and never auto-recovers from it) happens and email it to us (mz at celzero dot com)?

In the meanwhile, I'll also try to reproduce this issue on v055n. Have I got the steps right?

  1. Use System DNS.
  2. Put Android on airplane mode.
  3. Restart.
  4. Connect to WiFi
  5. Notice there is "no internet" and Rethink does not auto-recover unless Rethink is STOP/START again or refresh icon is tapped.

I've a similar issue and mailed you the logcat.

Cowman666 avatar Jan 27 '25 13:01 Cowman666

Hi, I'm currently use Version v0.5.5n and still have this problem.

GambaJo avatar Mar 07 '25 08:03 GambaJo

v055o has completely overhauled how System DNS is setup, and so I expected bugs such as these to have been resolved.

Please do test and let us know if that not what you observe: https://github.com/celzero/rethink-app/releases/tag/v0.5.5o

ignoramous avatar Aug 09 '25 05:08 ignoramous

Having the same issue with v0.5.5o (com.celzero.bravedns). It did not work with the default "rethink dns" so I switched to system dns, but it did not work either.

Notably, the errors still show that connection to rethinkdns.com is contacted, which I don't even want!

Full video: https://streamable.com/gx6r97

Nothing resolves, so this could be the same as #1503 or #1544 or #2066 though.

Blolada before worked fine.

rugk avatar Aug 19 '25 08:08 rugk

You're using Rethink in DNS-only mode, yeah? I just tested and System DNS worked fine for me. I'll leave it like this for a few more hours to see if I can reproduce the problem you're currently seeing.

Alternatively, you may try the v055q (which is also a pre-release) version & verify if things then work. Or, wait until alter today/tomorrow for v055r.

ignoramous avatar Aug 19 '25 09:08 ignoramous

Upgraded to vv0.5.5q (fdroid) gobind@v20250813215032-153f185 (android/[email protected]) 22/08/25, 06:51:19

Still does not work. No internet at all. The red message also shows it. Also used a custom dns server in the meantime, also does not work so maybe https://github.com/celzero/rethink-app/issues/1436 is the same root problem / cause.

Android 15, CalyxOS 6.8.21

rugk avatar Aug 22 '25 11:08 rugk

I tested vv0.5.5t the last weeks with 2 devices. It seems to work fine. I saw several times, that the connection was lost, but the "reconnetion" worked automaticaly.

GambaJo avatar Sep 17 '25 13:09 GambaJo

Thanks @GambaJo

@rugk can you please test with v055y & see if things work for your specific setup?

ignoramous avatar Jul 07 '26 22:07 ignoramous

I use v055y for a few days and until now it seems to work.

GambaJo avatar Jul 19 '26 12:07 GambaJo