WireShark.Com is not affiliated with Ethereal Wireshark
DNS queries are the requests your device sends to translate a domain name—such as example.com—into an IP address. Without DNS queries, your browser, apps, or services would not know where to connect.
This guide explains what DNS queries are, how they work, the different types, real examples, and how to analyze DNS traffic using Wireshark.
A DNS query is a request sent from a client device to a DNS resolver to look up the IP address behind a domain name. DNS works as the internet’s phonebook, allowing devices to reach the correct server.
A DNS query may return:
When you type a domain into your browser, this is the full DNS resolution process:
This process usually takes only a few milliseconds.
There are three main types of DNS queries. Each serves a different purpose depending on what information the resolver already has.
DNS queries return different record types depending on what information is requested.
| Record | Purpose | Example |
|---|---|---|
| A | IPv4 address | example.com → 93.184.216.34 |
| AAAA | IPv6 address | example.com → 2606:2800:220:1::248 |
| CNAME | Alias domain | www.example.com → example.com |
| MX | Mail servers | Google mail exchangers |
| NS | Nameserver | ns1.example.com |
| TXT | Verification / SPF | "v=spf1 include:google.com" |
Wireshark displays captured packets using a simple and powerful three-panel layout. Each panel shows a different level of detail, helping you move from a high-level overview to a deep packet analysis.
The top section shows all packets captured during your session. Each row represents a single packet and includes useful information such as:
Clicking a packet in this panel loads more detail in the two panels below.
This section breaks down the selected packet into layers, following the OSI or TCP/IP model:
You can expand each layer to view detailed fields such as ports, flags, sequence numbers, TTL values, and more.
The bottom panel shows the raw data of the packet in hexadecimal and ASCII format. This view is useful when you need to inspect the exact bytes being sent across the network.
Together, these three panels give you a complete view of every packet, from a high-level summary down to its raw data.
example.com → 93.184.216.34
Used by mail servers to find where to deliver email.
nslookup google.com
dig example.com
host cloudflare.com Wireshark is one of the best tools for inspecting DNS traffic and troubleshooting network issues.
Select your network interface and begin capturing packets.
If no network interfaces appear when starting a capture, the issue may be related to the installed packet capture driver .
dns
For a full walkthrough of capturing and filtering traffic, see our step-by-step guide to using the Wireshark network analyzer .
Cause: Overloaded or slow resolver.
Fix: Use a faster resolver like Cloudflare (1.1.1.1).
Cause: Invalid or unreachable domain.
Fix: Clear DNS cache, restart router, verify spelling.
Cause: VPN or browser leaking DNS traffic.
Fix: Use encrypted DNS (DoH or DoT).
Fix: Switch to a neutral resolver such as Google DNS or Cloudflare.
A DNS query retrieves the IP address of a domain so your device can connect to it.
Recursive, iterative, and non-recursive queries.
Standard DNS is not encrypted. DoH (DNS over HTTPS) and DoT (DNS over TLS) provide encrypted DNS.
Common causes include resolver outages, incorrect domain names, and cache corruption.
Switch to a faster DNS provider such as Cloudflare (1.1.1.1) or Google DNS (8.8.8.8).
We write reviews about the best packet sniffers. Let’s learn, inspire and unite.
Copyright 2025 WireShark.Com. All rights reserved. All information on this website is free of charge and is given without warranty.