From 949f57115ca6c164d089dbd185cb1180a1bf8c6e Mon Sep 17 00:00:00 2001 From: david Date: Fri, 27 Oct 2023 11:41:00 +0200 Subject: [PATCH] added check-gluerecords.sh --- check-gluerecords.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 check-gluerecords.sh diff --git a/check-gluerecords.sh b/check-gluerecords.sh new file mode 100755 index 0000000..879d95e --- /dev/null +++ b/check-gluerecords.sh @@ -0,0 +1,14 @@ +#!/bin/sh +S=${IFS} +IFS=. +for P in $1; do + TLD=${P} +done +IFS=${S} + +echo "TLD: ${TLD}" +DNSLIST=$(dig +short ${TLD}. NS) +for DNS in ${DNSLIST}; do + echo "Checking ${DNS}" + dig +norec +nocomments +noquestion +nostats +nocmd @${DNS} $1 NS +done \ No newline at end of file