Replace domain resolve check method from "ping" to "dig"
parent
28f79bd3bc
commit
50432e7429
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue