From 95fd1044ac7d87c418ae2832ec9fe320274231af Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sat, 16 Dec 2023 17:19:42 +1100 Subject: [PATCH] feat: Add providers to index page --- README.md | 14 ++++----- content/assets/js/bs-init.js | 7 +++++ content/index.html | 60 +++++++++++++++++++++++++++++++++--- upstream.sh | 12 ++++---- 4 files changed, 76 insertions(+), 17 deletions(-) create mode 100644 content/assets/js/bs-init.js diff --git a/README.md b/README.md index f383811..879c155 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,13 @@ Then setup your favourite reverse proxy to the container on port 80 ## Nodes Load balancing to the following DNS-over-HTTPS providers: -| Provider | URL | DoH JSON | DoH Wire | DoT | DNS | -| ---------------- | ---------------------------------------- | -------- | -------- | --- | --- | -| Nathan.Woodburn/ | https://doh.hnshosting.au/dns-query | Yes | Yes | Yes | Yes | -| EasyHandshake | https://easyhandshake.com:8053/dns-query | Yes | Yes | No | No | -| HNS DNS | https://doh.hnsdns.com/dns-query | Yes | Yes | No | Yes | -| HNS NS | https://hnsns.net/dns-query | Yes | Yes | No | No | -| Impervious | https://hs.dnssec.dev/dns-query | No | Yes | Yes | No | +| Provider | URL | DoH JSON | DoH Wire | DoT | DNS | HIP05 | +| ---------------- | ---------------------------------------- | -------- | -------- | --- | --- | ---- | +| Nathan.Woodburn/ | https://doh.hnshosting.au/dns-query | Yes | Yes | Yes | Yes | No | +| EasyHandshake | https://easyhandshake.com:8053/dns-query | Yes | Yes | No | No | No | +| HNS DNS | https://doh.hnsdns.com/dns-query | Yes | Yes | No | Yes | Yes | +| HNS NS | https://hnsns.net/dns-query | Yes | Yes | No | No | Yes | +| Impervious | https://hs.dnssec.dev/dns-query | No | Yes | Yes | No | Yes | - https://doh.hnshosting.au/dns-query diff --git a/content/assets/js/bs-init.js b/content/assets/js/bs-init.js new file mode 100644 index 0000000..3c1498d --- /dev/null +++ b/content/assets/js/bs-init.js @@ -0,0 +1,7 @@ +document.addEventListener('DOMContentLoaded', function() { + + var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bss-tooltip]')); + var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { + return new bootstrap.Tooltip(tooltipTriggerEl); + }) +}, false); \ No newline at end of file diff --git a/content/index.html b/content/index.html index 9f65e9e..3acd593 100644 --- a/content/index.html +++ b/content/index.html @@ -57,17 +57,17 @@
-
+

HNS DoH

Welcome to HNS DoH, your gateway to Handshake domains.

Introducing our cutting-edge DNS over HTTPS (DoH) service, a revolutionary approach to secure and efficient internet communication. In a digital landscape where privacy and reliability are paramount, our service stands out by integrating multiple upstream providers, guaranteeing high availability.
By strategically harnessing the strengths of diverse DNS providers, we ensure that your online activities remain both private and swift. Say hello to a new era of accessing Handshake domains.

Upstream DNS provided by

-
    +
    • Nathan.Woodburn/
    • EasyHandshake
    • HNS DNS
    • HNS NS
    • -
    +
More Info
@@ -114,7 +114,7 @@

Nodes

-

Here is a list of the community run nodes for HNSDoH

+

Here is a list of the community run nodes for HNS DoH

@@ -178,6 +178,57 @@
+
+
+

Providers

+

Upstream DNS Providers

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ProviderDNS over HTTPSDNS over TLSStandard DNSHIP05
Nathan.Woodburn/YesYesYesNo
EasyHandshakeYesNoNoNo
HNS DNSYesNoYesYes
HNS NSYesNoNoYes
+
+
+
+
+ \ No newline at end of file diff --git a/upstream.sh b/upstream.sh index b21d3bb..d6c23be 100755 --- a/upstream.sh +++ b/upstream.sh @@ -14,9 +14,9 @@ HTTPDOMAIN="nathan.woodburn" # Test DNS over HTTPS via GET request GetStandard=$(curl --silent -H 'accept: application/dns-json' 'https://'$SERVER'/dns-query?name='$TXTDOMAIN'&type=TXT') -# Verify that the response is not empty and has an answer of TXT with content "Test" +# Verify that the response is not empty and has an answer of TXT with content "DNS SUCCESS" test=$(jq -e '.Answer[] | select(.type == 16)' <<< $GetStandard) -if [ $test ]; then +if [[ $test == *"DNS SUCCESS"* ]]; then echo "DNS over HTTPS GET plain request test passed with content:" echo $test | jq . else @@ -38,8 +38,8 @@ fi IP=$(dig +short $SERVER) # Test using kdig kdigtest=$(kdig +tls-ca +tls-host=$SERVER $TXTDOMAIN @$IP TXT) -# Verify that the response is not empty and has text "Test" -if [[ $kdigtest == *"Test"* ]]; then +# Verify that the response is not empty and has text "DNS SUCCESS" +if [[ $kdigtest == *"DNS SUCCESS"* ]]; then echo "DNS over TLS kdig test passed" else echo "DNS over TLS kdig test failed" @@ -48,8 +48,8 @@ fi # Plain DNS # Test using dig digtest=$(dig $TXTDOMAIN @$SERVER TXT) -# Verify that the response is not empty and has text "Test" -if [[ $digtest == *"Test"* ]]; then +# Verify that the response is not empty and has text "DNS SUCCESS" +if [[ $digtest == *"DNS SUCCESS"* ]]; then echo "Plain DNS dig test passed" else echo "Plain DNS dig test failed"