Browse Source

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

master
Alexandr Paliy 2 years ago
parent
commit
50432e7429
  1. 2
      static/server.sh

2
static/server.sh

@ -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…
Cancel
Save