From 813078cefb7e87cdc42f0323f6ef7e05deb74545 Mon Sep 17 00:00:00 2001 From: Tad Date: Tue, 8 May 2018 16:02:24 -0400 Subject: [PATCH] Change fallback, tethering, and test DNS servers to OpenNIC Change-Id: Ic827c6d1baab6c86bf1f6e4125a4e324d0f5890f --- core/res/res/values/config.xml | 2 +- packages/SettingsLib/res/values/strings.xml | 4 ++-- .../com/android/server/connectivity/NetworkDiagnostics.java | 4 ++-- .../core/java/com/android/server/connectivity/Tethering.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index c29ff3c90a9..fa747cb651f 100755 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1608,7 +1608,7 @@ true - 8.8.8.8 + 169.239.202.202 diff --git a/packages/SettingsLib/res/values/strings.xml b/packages/SettingsLib/res/values/strings.xml index f9bd24ba69f..58ae0701f20 100644 --- a/packages/SettingsLib/res/values/strings.xml +++ b/packages/SettingsLib/res/values/strings.xml @@ -837,9 +837,9 @@ 192.168.1.128 - 8.8.8.8 + 169.239.202.202 - 8.8.4.4 + 185.121.177.177 192.168.1.1 diff --git a/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java b/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java index 5f9efe704f7..ac3068a07c2 100644 --- a/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java +++ b/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java @@ -84,9 +84,9 @@ import libcore.io.IoUtils; public class NetworkDiagnostics { private static final String TAG = "NetworkDiagnostics"; - private static final InetAddress TEST_DNS4 = NetworkUtils.numericToInetAddress("8.8.8.8"); + private static final InetAddress TEST_DNS4 = NetworkUtils.numericToInetAddress("169.239.202.202"); private static final InetAddress TEST_DNS6 = NetworkUtils.numericToInetAddress( - "2001:4860:4860::8888"); + "2a05:dfc7:5353::53"); // For brevity elsewhere. private static final long now() { diff --git a/services/core/java/com/android/server/connectivity/Tethering.java b/services/core/java/com/android/server/connectivity/Tethering.java index f0cf0d98882..8c8489a6ee3 100644 --- a/services/core/java/com/android/server/connectivity/Tethering.java +++ b/services/core/java/com/android/server/connectivity/Tethering.java @@ -181,8 +181,8 @@ public class Tethering extends BaseNetworkObserver implements IControlsTethering }; private String[] mDefaultDnsServers; - private static final String DNS_DEFAULT_SERVER1 = "8.8.8.8"; - private static final String DNS_DEFAULT_SERVER2 = "8.8.4.4"; + private static final String DNS_DEFAULT_SERVER1 = "169.239.202.202"; + private static final String DNS_DEFAULT_SERVER2 = "185.121.177.177"; private final StateMachine mTetherMasterSM; private final UpstreamNetworkMonitor mUpstreamNetworkMonitor; -- 2.17.0