Skip to content

Commit

Permalink
feat: Add DOH option
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed Mar 3, 2021
1 parent b17d162 commit 06bee3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmd/doggo/api/assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ var app = new Vue({
apiErrorMessage: "",
queryName: "",
queryType: "A",
nameserverName: "google",
nameserverName: "cloudflare",
customNSAddr: "",
nsAddrMap: {
"google": "8.8.8.8",
"cloudflare": "1.1.1.1",
"cloudflare-doh": "https://cloudflare-dns.com/dns-query",
"quad9": "9.9.9.9",
}
},
Expand All @@ -36,6 +37,8 @@ var app = new Vue({
return "tcp://8.8.8.8:53"
case "cloudflare":
return "tcp://1.1.1.1:53"
case "cloudflare-doh":
return "https://cloudflare-dns.com/dns-query"
case "quad9":
return "tcp://9.9.9.9:53"
case "custom":
Expand Down
3 changes: 2 additions & 1 deletion cmd/doggo/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ <h1 class="text-5xl font-black text-center"><span class="text-indigo-700">Doggo<
<select v-model="nameserverName"
class="block appearance-none w-full bg-grey-lighter border border-grey-lighter text-grey-darker py-3 px-4 pr-8 rounded"
id="grid-state">
<option value="google">Google</option>
<option value="cloudflare">Cloudflare</option>
<option value="cloudflare-doh">Cloudflare (DOH)</option>
<option value="google">Google</option>
<option value="quad9">Quad9</option>
<option value="custom">Custom</option>
</select>
Expand Down

0 comments on commit 06bee3f

Please sign in to comment.