diff --git a/.config/ci/test.sh b/.config/ci/test.sh index f6d58f5d150..bfccbb89396 100755 --- a/.config/ci/test.sh +++ b/.config/ci/test.sh @@ -133,3 +133,17 @@ sys.exit() EOF echo "DEBUG: TEMPFILE=${TEMPFILE}" ./run_scapy -H -c "${TEMPFILE}" || exit 1 + +# DEBUG +# OSX: clear DNS cache +if [[ "$OSTYPE" = "darwin"* ]] +then + echo "HEY" + # https://www.hongkiat.com/blog/clear-dns-cache-mac/ + sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder + ifconfig + cat /etc/resolv.conf + ping 1.1.1.1 + dig google.com +fi +