From 36e10595cc9d94799dbbf0ded660c7fec9547691 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Wed, 28 Sep 2016 09:51:14 -0700 Subject: [PATCH] Change netstat to lsof. --- advanced/Scripts/piholeDebug.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index 5b704f21..67d2815e 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -209,9 +209,10 @@ function portCheck { echo "######## Open Port Information #########" >> ${DEBUG_LOG} echo "############################################################" >> ${DEBUG_LOG} - echo "::: Writing local server ports to logfile" + echo "::: Detecting local server port 80 and 53 processes." - ${SUDO} netstat -tulpn >> ${DEBUG_LOG} + ${SUDO} lsof -i :80 >> ${DEBUG_LOG} + ${SUDO} lsof -i :53 >> ${DEBUG_LOG} echo >> ${DEBUG_LOG} }