1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-25 21:20:02 +00:00

[CI] Check for NOERROR return status in dig query

This commit is contained in:
Ben Busby 2022-08-01 22:37:23 -06:00
parent 6bfc92fb58
commit 650f28f1d5
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
2 changed files with 3 additions and 61 deletions

View file

@ -37,7 +37,7 @@ jobs:
ns=$(dig ns "$domain" || true)
if [[ "$ns" == *"cloudflare"* ]]; then
echo "\"$domain\" using cloudflare, skipping..."
elif [ ${#ns} -eq 0 ]; then
elif [[ "$ns" != *"NOERROR"* ]]; then
echo "Unable to verify records for \"$domain\", skipping..."
else
echo "$line" >> out.json