Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I used the sniffer application on a PC connected to a 3G USB dongle for internet access.
I have found that there are no DNS packets (port 53) associated with either TCP or UDP packets. Are you able to tell me why, I think i'm missing a simple setting to monitor the traffic on the IP address that has been allocated to the tethered device.

Using LAN and WiFi works like a charm.
Any suggestions would be greatly appreciated

Regards
Ralph

What I have tried:

Gone through all the ip header, TCP and UDP docs. Checked all byte offsets.
Posted
Updated 25-Jun-20 7:33am

1 solution

The machine may be caching the DNS resolution results from previous requests.

Open a CMD prompt and type ipconfig /displaydns to show what's in the resolver cache.
 
Share this answer
 
Comments
Member 1628554 25-Jun-20 14:33pm    
Hi Dave thank you so much for your quick reply. I flushed the DNS cache before running the application. If I run the app on a LAN with an internet connection or use WiFi with internet, the app works like a bomb, lots of ip packets with DNS. The minute I remove the PC from the LAN and plug in the USB dongle that has a 3g connection to the internet, I stop receiving DNS packets. My browser is rendering web pages properly, who or what is resolving the A address.
Dave Kreskowiak 25-Jun-20 14:36pm    
I that case, it's entirely possible the work is being done on the service provider side and not the PC.

You can clear the DNS cache, hit a couple of web pages, then dump the cache as see if anything is there. If this is the case, i have no idea why you're not seeing the DNS conversation.
Member 1628554 25-Jun-20 14:50pm    
Hi Dave, did as you suggested and the DNS entries I need are there. Any reason you can think from an application perspective (written in c#) that I am unable to discover them. I am monitoring port 53 on both TCP and UDP protocols. Once again thank you so much for your time in trying to help me.
Dave Kreskowiak 25-Jun-20 15:04pm    
I have no idea why it's doing this.
Member 1628554 25-Jun-20 15:06pm    
Thanks again Dave your help was really appreciated. You gave me somewhere to look :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900