How to use strace to trace network requests from an internal process on your network

Here is how you can see what ports/packets a local process is doing:

strace -e trace=network -f whmapi1 validate_current_dkims domain=example.com 2>&1 | grep -E "(connect|bind|socket)"

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *