diff --git a/inc/services.inc b/inc/services.inc index 1fea61c9..8db63d1c 100755 --- a/inc/services.inc +++ b/inc/services.inc @@ -18,14 +18,14 @@ SINGLE_SERVER_SERVICE_CHECK(){ if [ ! -f ${NM_TMPFOLDER}/.skip ] && ([[ "$(declare -p ${1^^}_SINGLESRVR_SERVICES)" =~ "declare -a" ]] || [[ "$(declare -p ${1^^}_SINGLESRVR_DOCKERS)" =~ "declare -a" ]] || [ "${1^^}" == "LPD" ]); then if [ "${1^^}" == "LPD" ]; then - dnstest=$(dig +short www.google.com @127.0.0.1) + dnstest=$(dig +short +tries=1 +time=1 www.google.com @127.0.0.1) if [ "${dnstest}" == "" ]; then /usr/local/bin/nmg skip on >/dev/null 2>&1 completed=false; scanstart=$(date +%s) sleep 4s until [ "${completed}" == "true" ]; do - dnstest=$(dig +short www.google.com @127.0.0.1) - if [ "${dnstest}" != "" ] && [[ "${dnstest}" != *"error"* ]]; then + dnstest=$(dig +short +tries=1 +time=1 www.google.com @127.0.0.1) + if [ "${dnstest}" != "" ] && [[ "${dnstest}" != ";;"* ]]; then completed=true break