From c5e9c3afd27e8b9672c0a0395f34084b1322dd61 Mon Sep 17 00:00:00 2001 From: Tad Date: Tue, 8 May 2018 15:53:53 -0400 Subject: [PATCH] Change fallback, tethering, and test DNS servers to OpenNIC Change-Id: Ic828a5695aa24a12ba8921115cb87eec7dc7ad30 --- core/res/res/values/config.xml | 2 +- packages/SettingsLib/res/values/strings.xml | 4 ++-- .../com/android/server/connectivity/NetworkDiagnostics.java | 4 ++-- .../server/connectivity/tethering/TetheringConfiguration.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 3ce8959a983..cd7602763a1 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1651,7 +1651,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 bd884a3c972..7547447876d 100644 --- a/packages/SettingsLib/res/values/strings.xml +++ b/packages/SettingsLib/res/values/strings.xml @@ -921,9 +921,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 85d1d1ef1d7..c71ecf8079f 100644 --- a/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java +++ b/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java @@ -85,9 +85,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/TetheringConfiguration.java b/services/core/java/com/android/server/connectivity/tethering/TetheringConfiguration.java index acbc10b9dc4..3a206e70774 100644 --- a/services/core/java/com/android/server/connectivity/tethering/TetheringConfiguration.java +++ b/services/core/java/com/android/server/connectivity/tethering/TetheringConfiguration.java @@ -65,7 +65,7 @@ public class TetheringConfiguration { "192.168.48.2", "192.168.48.254", "192.168.49.2", "192.168.49.254", }; - private final String[] DEFAULT_IPV4_DNS = {"8.8.4.4", "8.8.8.8"}; + private final String[] DEFAULT_IPV4_DNS = {"169.239.202.202", "185.121.177.177"}; public final String[] tetherableUsbRegexs; public final String[] tetherableWifiRegexs; -- 2.17.0