summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-04-08 11:50:42 +0200
committercyBerta <cyberta@riseup.net>2023-04-18 00:52:47 +0200
commita5b1430c54223a3b8c4e576e0124d7747a26b4ad (patch)
tree3204b6cd7c2fe7524a89fbac2ecfa95f045c436c /app/src
parentd86284fd86603e869221a621e1f2953d5a0302d2 (diff)
update DoH DNS Servers for API communication
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/providersetup/connectivity/DnsResolver.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/connectivity/DnsResolver.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/connectivity/DnsResolver.java
index c6cc5305..f4654d0b 100644
--- a/app/src/main/java/se/leap/bitmaskclient/providersetup/connectivity/DnsResolver.java
+++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/connectivity/DnsResolver.java
@@ -80,28 +80,28 @@ class DnsResolver implements Dns {
}
private List<InetAddress> tryLookupDoH(@NonNull String hostname) throws UnknownHostException {
- DnsOverHttps ahablitzDoHClient = new DnsOverHttps.Builder().client(dohHttpClient)
- .url(HttpUrl.get("https://blitz.ahadns.com"))
+ DnsOverHttps njallaDoH = new DnsOverHttps.Builder().client(dohHttpClient)
+ .url(HttpUrl.get("https://dns.njal.la/dns-query"))
+ .bootstrapDnsHosts(getByName("95.215.19.53"), getByName("2001:67c:2354:2::53"))
.build();
try {
- Log.d("DNS", "DoH via blitz.ahadns.com");
- return ahablitzDoHClient.lookup(hostname);
+ Log.d("DNS", "DoH via dns.njal.la");
+ return njallaDoH.lookup(hostname);
} catch (UnknownHostException e) {
e.printStackTrace();
- Log.e("DNS", "DoH via blitz.ahadns.com failed");
+ Log.e("DNS", "DoH via dns.njal.la failed");
}
- DnsOverHttps googleDoHClient = new DnsOverHttps.Builder().client(dohHttpClient)
- .url(HttpUrl.get("https://dns.google/dns-query"))
- .bootstrapDnsHosts(getByName("8.8.4.4"), getByName("8.8.8.8"))
+ DnsOverHttps quad9 = new DnsOverHttps.Builder().client(dohHttpClient)
+ .url(HttpUrl.get("https://dns.quad9.net/dns-query"))
+ .bootstrapDnsHosts(getByName("9.9.9.9"), getByName("149.112.112.112"), getByName("2620:fe::fe"), getByName("2620:fe::9"))
.build();
try {
- Log.d("DNS", "DoH via dns.google");
- return googleDoHClient.lookup(hostname);
+ Log.d("DNS", "DoH via dns.quad9.net");
+ return quad9.lookup(hostname);
} catch (UnknownHostException e) {
e.printStackTrace();
- Log.e("DNS", "DoH via dns.google failed");
-
+ Log.e("DNS", "DoH via dns.quad9.net failed");
}
DnsOverHttps cloudFlareDoHClient = new DnsOverHttps.Builder().client(dohHttpClient)