Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

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

share|improve this answer

I would use the following

sudo lsof -i -n -a

(You could also use fuser)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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