From 3a8b853c465b5280aa5f15db0bd67a39ed04e537 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 10 Dec 2024 00:05:22 +0700 Subject: [PATCH] Some endpoints don't have AAAA --- src/whitelist/resolve.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whitelist/resolve.sh b/src/whitelist/resolve.sh index fd00418..bb6ddb7 100644 --- a/src/whitelist/resolve.sh +++ b/src/whitelist/resolve.sh @@ -12,7 +12,7 @@ for RECORD_TYPE in A AAAA; do printf '\r%s Fetching NS %s of %s' "$(tput el)" $RECORD_TYPE $p fi FFI=$(dig +short $RECORD_TYPE $p @1.1.1.1 | grep -v '\.$') - if [ -z "$FFI" ]; then + if [ -z "$FFI" ] && [ "$RECORD_TYPE" = "A" ]; then echo "No records found for $p, exiting." exit 1 fi