Skip to content

Commit

Permalink
Some endpoints don't have AAAA
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Dec 9, 2024
1 parent 046cbf4 commit 3a8b853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/whitelist/resolve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a8b853

Please sign in to comment.