Watch DNS requests

Is there any software that show and log the dns query's from TCPdump or sth like that  on cent os?

We have a cent os server which is just a transparent bridge on UDP 53 port's trafic. So we want to trace the requests on this server from tcpdump is it possible ?
FireBallITAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

giltjrCommented:
If the requests are truly passing through the box, then tcpdump will capture anything and everything.

You can limit tcpdump to just capturing udp and tcp port 53 to limit the amount of data you capture.
FireBallITAuthor Commented:
no i want to see sth like tshark result

source ip
destination ip
requested record (like google.com)
giltjrCommented:
You can try:

tcpdump -s 0 -t -v -n port 53

This will show you in real time anything for port 53.  It will show source and destination IP address and what the query request and response was.

I assumed you wanted the output saved to a file, so I assumed you were going to use the -w option and write the capture to a file to look at later.
giltjrCommented:
Take the -v out and it may be closer to what you want.  I just by habit  use -v when I am not capturing to a file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SandyCommented:
try wireshark for once, it has user friendly output.

TY/SA
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.