Replace domain resolve check method from "ping" to "dig"

master
Alexandr Paliy 2020-09-14 17:02:01 +03:00
parent 28f79bd3bc
commit 50432e7429
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ done
WaitDNSPropagation() WaitDNSPropagation()
{ {
printf "Waiting for DNS Record to propagate..." printf "Waiting for DNS Record to propagate..."
while [[ $( ping -n 1 $DOMAIN | grep -o $machineip ) != $machineip ]] while [[ $( dig $DOMAIN a +short ) != $machineip ]]
do do
sleep 1 sleep 1
done done