Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Sniff domain resolve requests.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ruivilela
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 236
Location: Łódź

PostPosted: Mon Feb 08, 2010 5:50 pm    Post subject: [SOLVED] Sniff domain resolve requests. Reply with quote

I've a server running dnsmasq which acts like dhcp server and local DNS (which i control)

Question? How can I see the domain names that are being resolved by the server and the one that are forwarded?

My first guest is to use tcpdump. Is there a specific tool for this?


Last edited by ruivilela on Thu Feb 11, 2010 3:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1336
Location: Sweating in South Florida

PostPosted: Tue Feb 09, 2010 2:45 pm    Post subject: Reply with quote

dnsmasq is a caching dns forwarder. So initially all DNS queries are forwarded and then cached on the server for the TTL. What is your objective for trying to figure this out?
_________________
When harmonious relationships dissolve
Then respect and devotion arise;
When a nation falls to chaos
Then loyalty and patriotism are born.
-Lao Tse
Back to top
View user's profile Send private message
ruivilela
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 236
Location: Łódź

PostPosted: Thu Feb 11, 2010 9:00 am    Post subject: Reply with quote

To log all domains that are asked to server to find out the IP address.

Ok. I found my solution through tcpdump
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1336
Location: Sweating in South Florida

PostPosted: Thu Feb 11, 2010 4:05 pm    Post subject: Reply with quote

Check out dnstop, it's in portage.
_________________
When harmonious relationships dissolve
Then respect and devotion arise;
When a nation falls to chaos
Then loyalty and patriotism are born.
-Lao Tse
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum