Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Flush DNS [closed]

Tags:

android

dns

We recently released an android application that pulls information from an external server. Last week we moved from shared hosting to a dedicated server, that went smoothly up until we started getting complaints that users were getting server not found errors. We checked on our android-based phones (Droid) and everything worked fine. The vast majority of users are fine, there seems to be a small percentage of t-mobile users running android o/s 1.5 (g1, mytouch 3g) that seem to be having trouble. We believe these are all previous users of the application.

Anyway, we've been trying to find a fix (similar to ipconfig /flushdns) but have been unable to do so. Has anyone had experience with something similar to this? Thanks.

like image 341
user254919 Avatar asked Jan 20 '10 13:01

user254919


People also ask

How do I clear DNS cache on Android?

Android (version 12)In the URL bar type in chrome://net-internals/#dns: In the left pane select DNS. In the right pane tap the Clear host cache button.

What happens if you flush DNS cache?

What does flush DNS do? Flushing DNS will clear any IP addresses or other DNS records from your cache. This can help resolve security, internet connectivity, and other issues. It's important to understand that your DNS cache will clear itself out from time to time without your intervention.

How do I clear DNS history?

Open the Start Menu and start typing command prompt until you see it in the results. 2. Type ipconfig /flushdns when the prompt loads and hit Enter on the keyboard. The DNS Cache database on your computer is now clear.


2 Answers

You have a few options:

  • Release an update for your app that uses a different hostname that isn't in anyone's cache.
  • Same thing, but using the IP address of your server
  • Have your users go into settings -> applications -> Network Location -> Clear data.

You may want to check that last step because i don't know for a fact that this is the appropriate service. I can't really test that right now. Good luck!

like image 141
loginx Avatar answered Sep 28 '22 08:09

loginx


copied from: https://android.stackexchange.com/questions/12962/flush-clear-dns-cache

Addresses are cached for 600 seconds (10 minutes) by default. Failed lookups are cached for 10 seconds. From everything I've seen, there's nothing built in to flush the cache. This is apparently a reported bug http://code.google.com/p/android/issues/detail?id=7904 in Android because of the way it stores DNS cache. Clearing the browser cache doesn't touch the DNS, the "hard reset" clears it.

like image 24
Slavik Avatar answered Sep 28 '22 09:09

Slavik