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.

link|improve this question
feedback

2 Answers

up vote 2 down vote accepted

Getting rid of --numeric-hosts will tell netstat to do address lookups.

link|improve this answer
feedback

I would use the following

sudo lsof -i -n -a

(You could also use fuser)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.