What can I use to monitor which IP address w/name resolution is connected to each PID?

Posted by supercheetah on Server Fault See other posts from Server Fault or by supercheetah
Published on 2010-05-01T22:56:35Z Indexed on 2010/05/01 22:59 UTC
Read the original article Hit count: 355

This would be for under Linux particularly.

Is there a tool out there, or a script that I could use to monitor IP connections--with name resolution--and, see which process they're connected to?

Right now I'm using this:

watch -d netstat -peeW --numeric-hosts --inet

But that doesn't give me host resolution. I was thinking of writing up a script with sed or something, but that seemed like more work than it needed to be.

© Server Fault or respective owner

Related posts about linux

Related posts about ip-address