feat: Add providers to index page
All checks were successful
Build Docker / Build Docker (push) Successful in 23s

This commit is contained in:
Nathan Woodburn 2023-12-16 17:19:42 +11:00
parent 6ba2cd3894
commit 95fd1044ac
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
4 changed files with 76 additions and 17 deletions

View File

@ -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

View File

@ -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);

View File

@ -57,17 +57,17 @@
</nav>
</header>
<section id="intro" style="margin: 100px;margin-top: 20vh;">
<div>
<div class="text-center">
<h1 class="text-center" style="margin-bottom: 50px;">HNS DoH</h1>
<h2 class="text-center" style="margin-bottom: 50px;">Welcome to HNS DoH, your gateway to Handshake domains.</h2>
<p>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.<br>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.</p>
<h1 style="margin-top: 50px;">Upstream DNS provided by</h1>
<ul class="list-group">
<ul class="list-group text-start">
<li class="list-group-item"><span>Nathan.Woodburn/</span></li>
<li class="list-group-item"><span>EasyHandshake</span></li>
<li class="list-group-item"><span>HNS DNS</span></li>
<li class="list-group-item"><span>HNS NS</span></li>
</ul>
</ul><a class="btn btn-primary" role="button" href="#providers" style="margin-top: 50px;">More Info</a>
</div>
</section>
<section id="setup" style="min-height: 400px;padding-top: 10vh;text-align: center;margin-right: 10%;margin-left: 10%;" data-bs-target="#navcol-5" data-bs-smooth-scroll="true">
@ -114,7 +114,7 @@
<div class="row mb-4 mb-lg-5">
<div class="col-md-8 col-xl-6 text-center mx-auto">
<h2>Nodes</h2>
<p class="w-lg-50">Here is a list of the community run nodes for HNSDoH</p>
<p class="w-lg-50">Here is a list of the community run nodes for HNS DoH</p>
</div>
</div>
<div class="row gx-4 row-cols-2 row-cols-md-4" style="--bs-primary: #ffffff;--bs-primary-rgb: 255,255,255;">
@ -178,6 +178,57 @@
</div>
</div>
</section>
<section id="providers" style="margin-top: 10vh;margin-right: 10%;margin-left: 10%;">
<div style="text-align: center;">
<h1>Providers</h1>
<h3 style="margin-bottom: 5vh;">Upstream DNS Providers</h3>
<div>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Provider</th>
<th>DNS over HTTPS</th>
<th>DNS over TLS</th>
<th>Standard DNS</th>
<th data-bs-toggle="tooltip" data-bss-tooltip="" title="Resolve crosschain domains">HIP05</th>
</tr>
</thead>
<tbody>
<tr>
<td>Nathan.Woodburn/</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td title="Resolve crosschain domains">No</td>
</tr>
<tr>
<td>EasyHandshake</td>
<td>Yes</td>
<td>No</td>
<td>No</td>
<td title="Resolve crosschain domains">No</td>
</tr>
<tr>
<td>HNS DNS</td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
<td title="Resolve crosschain domains">Yes</td>
</tr>
<tr>
<td>HNS NS</td>
<td>Yes</td>
<td>No</td>
<td>No</td>
<td title="Resolve crosschain domains">Yes</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
<footer class="text-center bg-dark">
<div class="container text-white py-4 py-lg-5">
<p class="text-muted mb-0">Copyright © 2023 HNS DoH</p><!-- Matomo Image Tracker-->
@ -186,6 +237,7 @@
</div>
</footer>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/bs-init.js"></script>
</body>
</html>

View File

@ -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"