mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Add DIG variable (#2576)
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
parent
70755f416b
commit
afd13db5c5
3
lib.sh
3
lib.sh
@ -497,7 +497,8 @@ You can use this site to check if the IP seems correct: https://www.whatsmydns.n
|
||||
fi
|
||||
|
||||
# Is the DNS record same as the external IP address of the server?
|
||||
if dig +short "${1}" @resolver1.opendns.com | grep -q "$WANIP4"
|
||||
DIG="$(dig +short "${1}" @resolver1.opendns.com)"
|
||||
if "$DIG" | grep -q "$WANIP4"
|
||||
then
|
||||
print_text_in_color "$IGreen" "DNS seems correct when checking with dig!"
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user