mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-30 09:04:15 +02:00
(2+1)*40
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
72a52807d1
commit
215003899d
@ -351,7 +351,8 @@ gravity_CheckDNSResolutionAvailable() {
|
||||
str="Waiting 120 seconds if DNS resolution becomes available..."
|
||||
echo -ne " ${INFO} ${str}"
|
||||
|
||||
for ((i = 0; i < 120; i++)); do
|
||||
# Default DNS timeout is two seconds, plus 1 second for each dot > 120 seconds
|
||||
for ((i = 0; i < 40; i++)); do
|
||||
if getent hosts github.com &> /dev/null; then
|
||||
# If we reach this point, DNS resolution is available
|
||||
echo -e "${OVER} ${TICK} DNS resolution is available"
|
||||
|
Loading…
x
Reference in New Issue
Block a user