Replace domain resolve check method from "ping" to "dig"
parent
28f79bd3bc
commit
50432e7429
|
@ -217,7 +217,7 @@ done
|
|||
WaitDNSPropagation()
|
||||
{
|
||||
printf "Waiting for DNS Record to propagate..."
|
||||
while [[ $( ping -n 1 $DOMAIN | grep -o $machineip ) != $machineip ]]
|
||||
while [[ $( dig $DOMAIN a +short ) != $machineip ]]
|
||||
do
|
||||
sleep 1
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue