DNS issue on Android 13 Beta 1 #457
Comments
Disable Private DNS temporarily |
Thanks for the reply. |
It seems that DNS failure on mobile network is an Android issue. I checked system logcat, there were a lot DnsResolver logs.
Also did some testing with Shadowsocks app. When on mobile network, the behavior was the same with the following error.
EDIT: Reported to Google. https://issuetracker.google.com/issues/231691473 |
Just found that setting Direct DNS to a simple DNS server (for example Start service on Wi-Fi, everything works. Then switch to mobile network, DNS will fail for domains in bypass list.
Start service on mobile network, then switch to Wi-Fi.
|
OK I've found a workaround for this issue. Simply use DoH or DoT IP as Direct DNS, to prevent using system resolver to get the IP. UDP DNS has issues when switching network (see the previous comment). EDIT: removed incorrect statement. |
You should use |
I can't reproduce these problems in TPB1.220310.029 in DSU and android emulator, maybe it' s device related |
Thanks for the reply. Misunderstood what local means before. Did a few more testing, and now I'm sure there is something wrong with my mobile network. Don't know why but it seems that my ISP blocked access to Sorry about my previous comment, I will edit it. I tested on Pixel 5 again and I can reproduce the issue caused by switching network when using UDP DNS as direct DNS. As for the system resolver issue, it might be related to Google Play system update, so it might not be reproducible on emulator image. Last year there was a problematic Google Play system update, which made all network traffic not going through VPN service. |
This should be an Android issue, so I'm closing this issue now. I'm sorry for the trouble. Thanks. |
Describe the bug
On Android 13 Beta 1, DNS lookup may be slow or completely not work. It happens very frequently when using mobile network, making the app almost unusable.
To Reproduce
Also observed some crashes when testing.
Debug Information
You can see DNS errors and crashes in this log
SagerNet 18538973749076878.log
DNS errors:
All DNS requests failed.
--
This one was captured when DNS was working and switched to mobile network
SagerNet 6738847959404517672.log
It contains some different DNS errors:
NOTE: at this time, DNS requests going through proxy was still working
Expected behavior
DNS service works well.
Smartphone (please complete the following information)
Additional context
There is no problem on a device running Android 12. SagerNet also works well on my old device running Android 7.1.2.
The text was updated successfully, but these errors were encountered: