We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70755f4 commit afd13dbCopy full SHA for afd13db
lib.sh
@@ -497,7 +497,8 @@ You can use this site to check if the IP seems correct: https://www.whatsmydns.n
497
fi
498
499
# Is the DNS record same as the external IP address of the server?
500
- if dig +short "${1}" @resolver1.opendns.com | grep -q "$WANIP4"
+ DIG="$(dig +short "${1}" @resolver1.opendns.com)"
501
+ if "$DIG" | grep -q "$WANIP4"
502
then
503
print_text_in_color "$IGreen" "DNS seems correct when checking with dig!"
504
else
0 commit comments