From 0b16708540e6680535d8e10ddddc14dd182b524f Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 25 Aug 2025 15:47:53 +1000 Subject: [PATCH] feat: Update EasyHNS IPv6 address --- public/index.html | 4 ++-- testv6.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100755 testv6.sh diff --git a/public/index.html b/public/index.html index 1080bf3..e43adc9 100644 --- a/public/index.html +++ b/public/index.html @@ -66,7 +66,7 @@

Reliability is our key focus

By using a diverse group of upstream providers, we minimise downtime. Multiple of our DNS providers can go down without any downtime to our users.
Check out our uptime compared to our upstream DNS providers

Status Page

Support HNSDoH

-

HNS DoH is a community-driven project.
If you’d like to help keep the service running and growing, consider supporting us:
+

HNS DoH is a community-driven project.
If you'd like to help keep the service running and growing, consider supporting us:

PayPalCard (via Stripe)HNSBTCOther Donation Options

@@ -402,7 +402,7 @@ document.getElementById('refresh-ping').addEventListener('click', function (even Easy HNS England 51.24.7.1 - 2a05:d01c:b4a:2900:a47b:4665:c52f:fc6c + 2a05:d01c:b4a:2900:945c:1a85:e537:cf80 EU diff --git a/testv6.sh b/testv6.sh new file mode 100755 index 0000000..b339591 --- /dev/null +++ b/testv6.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Check if script has ip address as argument +if [ -z "$1" ]; then + # Get Node IPs + RESOLVED_IPS=$(dig +short hnsdoh.com AAAA) + NODE_IPS=($RESOLVED_IPS) + if [ ${#NODE_IPS[@]} -eq 0 ]; then + echo "No IP addresses resolved for hnsdoh.com. Exiting." + exit 1 + fi +fi + +# If script has ip address as argument, use that +if [ -n "$1" ]; then + # Add all arguments to NODE_IPS array + NODE_IPS=("$@") +fi + + + +# Define the domain and host for kdig commands +TLS_HOST="hnsdoh.com" +DOH_URL="https://hnsdoh.com/dns-query" + +# Loop over each IP and run the kdig commands +for NODE_IP in "${NODE_IPS[@]}" +do + echo "Running kdig commands for NODE_IP=$NODE_IP" + + # Run the kdig commands + kdig +tls +tls-host=$TLS_HOST @$NODE_IP dot.wdbrn TXT +short + kdig +tls-ca +https=@$DOH_URL @$NODE_IP doh.wdbrn TXT +short + kdig @$NODE_IP plain.wdbrn TXT +short + + echo "Completed kdig commands for NODE_IP=$NODE_IP" + echo "--------------------------------------------" +done