Bluehost.com Web Hosting $6.95

detecting which process sends out UDP traffic

This is a discussion on detecting which process sends out UDP traffic within the Linux Networking forums, part of the Linux Forums category; hi, i noticed that my system sends out a DNS request every couple of seconds. how can i find out ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-05-2004
uzon
 
Posts: n/a
Default detecting which process sends out UDP traffic

hi,
i noticed that my system sends out a DNS request every couple of
seconds. how can i find out which process is doing this?
i ran "lsof -i@dns.server.ip" which is supposed to show the process
which has an open socket to the dns server's ip, but it didn't show
anything.
also netstat didn't show any sockets..
any way to do this?
thanks in advance,
-Aaron
Reply With Quote
  #2 (permalink)  
Old 09-05-2004
Ian Northeast
 
Posts: n/a
Default Re: detecting which process sends out UDP traffic

On Sat, 04 Sep 2004 20:22:07 -0700, uzon wrote:

> hi,
> i noticed that my system sends out a DNS request every couple of seconds.
> how can i find out which process is doing this? i ran "lsof
> -i@dns.server.ip" which is supposed to show the process which has an open
> socket to the dns server's ip, but it didn't show anything.
> also netstat didn't show any sockets.. any way to do this?
> thanks in advance,


The only way I know how to do this is to arrange somehow for the query not
to be answered. If it's querying your own nameservers you can shut them
down, or you can put in temporary firewall rules to prevent the query
going out or the response coming back. Then the socket will stay open long
enough to catch it with lsof.

Regards, Ian

Reply With Quote
  #3 (permalink)  
Old 09-05-2004
Michael Heiming
 
Posts: n/a
Default Re: detecting which process sends out UDP traffic

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking uzon <asb23@hotmail.com> suggested:
> hi,
> i noticed that my system sends out a DNS request every couple of
> seconds. how can i find out which process is doing this?
> i ran "lsof -i@dns.server.ip" which is supposed to show the process
> which has an open socket to the dns server's ip, but it didn't show
> anything.


lsof -i UDP:53

Should show anything using port 53/UDP, perhaps you can work it
out from there run it in a loop for a few minutes, just keep an
eye on your logfile size.;) 'tcpdump' should be helpful in addition.

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBOww+AkPEju3Se5QRAvb8AJoCNbfrHiJ9EQ28AjLj/P5UNEI1ogCgvx/1
b0PNVPu8JV3FuxetMPeEYUI=
=RUTm
-----END PGP SIGNATURE-----
Reply With Quote
  #4 (permalink)  
Old 09-10-2004
uzon
 
Posts: n/a
Default Re: detecting which process sends out UDP traffic

worked like a charm.
thanks
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:55 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0