|
@@ -20,6 +20,7 @@ const val PREF_DOH_QUAD101 = 8
|
|
|
const val PREF_DOH_MULLVAD = 9
|
|
|
const val PREF_DOH_CONTROLD = 10
|
|
|
const val PREF_DOH_NJALLA = 11
|
|
|
+const val PREF_DOH_SHECAN = 12
|
|
|
|
|
|
fun OkHttpClient.Builder.dohCloudflare() = dns(
|
|
|
DnsOverHttps.Builder().client(build())
|
|
@@ -145,7 +146,6 @@ fun OkHttpClient.Builder.dohMullvad() = dns(
|
|
|
* unfiltered option
|
|
|
* Source : https://controld.com/free-dns/?
|
|
|
*/
|
|
|
-
|
|
|
fun OkHttpClient.Builder.dohControlD() = dns(
|
|
|
DnsOverHttps.Builder().client(build())
|
|
|
.url("https://freedns.controld.com/p0".toHttpUrl())
|
|
@@ -160,7 +160,6 @@ fun OkHttpClient.Builder.dohControlD() = dns(
|
|
|
|
|
|
/*
|
|
|
* Njalla
|
|
|
- *
|
|
|
* Non logging and uncensored
|
|
|
*/
|
|
|
fun OkHttpClient.Builder.dohNajalla() = dns(
|
|
@@ -172,3 +171,16 @@ fun OkHttpClient.Builder.dohNajalla() = dns(
|
|
|
)
|
|
|
.build(),
|
|
|
)
|
|
|
+
|
|
|
+/**
|
|
|
+ * Source: https://shecan.ir/
|
|
|
+ */
|
|
|
+fun OkHttpClient.Builder.dohShecan() = dns(
|
|
|
+ DnsOverHttps.Builder().client(build())
|
|
|
+ .url("https://free.shecan.ir/dns-query".toHttpUrl())
|
|
|
+ .bootstrapDnsHosts(
|
|
|
+ InetAddress.getByName("178.22.122.100"),
|
|
|
+ InetAddress.getByName("185.51.200.2"),
|
|
|
+ )
|
|
|
+ .build(),
|
|
|
+)
|