commit | 051642b87b736d052d3a7452250445367174a954 | [log] [tgz] |
---|---|---|
author | Robert Greenwalt <rgreenwalt@google.com> | Tue Nov 02 14:08:23 2010 -0700 |
committer | Robert Greenwalt <rgreenwalt@google.com> | Thu Nov 04 11:52:35 2010 -0700 |
tree | 12c656631aa0c30914d1ff49151dd8720802ba43 | |
parent | 3425ad6ca63767caa49f869dae06aa3842ba94b3 [diff] [blame] |
Tell each VM to flush their DNS cache. bug:3095357 Change-Id: I93de24e3e5a7d8b94d55f4facfffc863a2b8c202
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index ee0cc4b..c18262e 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java
@@ -1596,6 +1596,12 @@ } catch (NumberFormatException e) {} } SystemProperties.set("net.dnschange", "" + (n+1)); + /* + * Tell the VMs to toss their DNS caches + */ + Intent intent = new Intent(Intent.ACTION_CLEAR_DNS_CACHE); + intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); + mContext.sendBroadcast(intent); } private void handleDnsConfigurationChange(int netType) {