Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add DoH DNS servers #1481

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,36 @@ fun OkHttpClient.Builder.addQuad9Dns() = (
"9.9.9.9",
"149.112.112.112",
)
))
))

fun OkHttpClient.Builder.addDnsSbDns() = (
addGenericDns(
"https://doh.dns.sb/dns-query",

listOf(
salman731 marked this conversation as resolved.
Show resolved Hide resolved
"185.222.222.222",
"45.11.45.11",
)
))

fun OkHttpClient.Builder.addCanadianShieldDns() = (
addGenericDns(
"https://private.canadianshield.cira.ca/dns-query",

listOf(
"149.112.121.10",
"149.112.122.10",
)
))

fun OkHttpClient.Builder.addNextDns() = (
addGenericDns(
salman731 marked this conversation as resolved.
Show resolved Hide resolved
"https://dns.nextdns.io/457cc1",

listOf(
"45.90.28.47",
"45.90.30.47",
"2a07:a8c0::45:7cc1",
"2a07:a8c1::45:7cc1",
)
))
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ fun buildDefaultClient(context: Context): OkHttpClient {
4 -> addAdGuardDns()
5 -> addDNSWatchDns()
6 -> addQuad9Dns()
7 -> addDnsSbDns()
8 -> addCanadianShieldDns()
9 -> addNextDns()
}
}
// Needs to be build as otherwise the other builders will change this object
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values-tr/array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<item>AdGuard</item>
<item>DNS.WATCH</item>
<item>Quad9</item>
<item>DNS.SB</item>
<item>Canadian Shield</item>
<item>Next Dns</item>
</array>
<array name="dns_pref_values">
<item>0</item>
Expand All @@ -31,6 +34,9 @@
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
</array>

<array name="limit_title_rez_pref_names">
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values/array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<item>AdGuard</item>
<item>DNS.WATCH</item>
<item>Quad9</item>
<item>DNS.SB</item>
<item>Canadian Shield</item>
<item>Next Dns</item>
</array>
<array name="dns_pref_values">
<item>0</item>
Expand All @@ -31,6 +34,9 @@
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
</array>

<array name="apk_installer_pref">
Expand Down
Loading