🔎 LIVE NSLOOKUP QUERY INTERACTIVE
💥 Enter a domain name first!
ℹ️ Powered by Cloudflare DoH — Queries use cloudflare-dns.com/dns-query and format results exactly like real nslookup terminal output. The DNS server field is shown in output (as nslookup would display it) — actual resolution uses DoH.
📖 ANNOTATED NSLOOKUP OUTPUT REFERENCE

nslookup output follows the same structure every time — once you learn to read it, DNS becomes obvious. Click each example to expand.

🟢 Example 1 — nslookup devdunia.com (A record)
Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: devdunia.com Address: 185.199.108.153 Name: devdunia.com Address: 185.199.109.153 Name: devdunia.com Address: 185.199.110.153 Name: devdunia.com Address: 185.199.111.153
① SERVER LINES
Server: 8.8.8.8 — the resolver you're querying (Google Public DNS).
Address: 8.8.8.8#53 — the #53 suffix means port 53 (the standard DNS port, UDP by default).
② NON-AUTHORITATIVE ANSWER
This label appears when the resolver (8.8.8.8) is not the authoritative nameserver for devdunia.com — it fetched the answer on your behalf and may have returned a cached copy. This is completely normal for almost all lookups.
③ FOUR IP ADDRESSES
devdunia.com is hosted on GitHub Pages, which returns 4 IPs for load balancing. nslookup shows one Name/Address pair per record. Your browser will typically use the first IP that responds.
📧 Example 2 — nslookup -type=MX gmail.com (mail servers)
Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: gmail.com mail exchanger = 5 gmail-smtp-in.l.google.com gmail.com mail exchanger = 10 alt1.gmail-smtp-in.l.google.com gmail.com mail exchanger = 20 alt2.gmail-smtp-in.l.google.com gmail.com mail exchanger = 30 alt3.gmail-smtp-in.l.google.com gmail.com mail exchanger = 40 alt4.gmail-smtp-in.l.google.com
MX PRIORITY NUMBERS
The number after mail exchanger = is the priority — lower = higher preference. Sending mail servers try priority 5 first (gmail-smtp-in.l.google.com), then fall back to 10, 20, etc. if the primary is unreachable. This is how email stays reliable.
-TYPE= FLAG
Unlike dig, nslookup uses -type=MX or -query=MX syntax (both work). On some systems you can also type set type=MX in interactive mode. Windows nslookup uses -type, Linux/macOS prefer -query.
📌 Example 3 — nslookup -type=NS devdunia.com (nameservers)
Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: devdunia.com nameserver = ns1.digitalocean.com devdunia.com nameserver = ns2.digitalocean.com devdunia.com nameserver = ns3.digitalocean.com Authoritative answers can be found from: ns1.digitalocean.com internet address = 173.245.58.51 ns2.digitalocean.com internet address = 173.245.59.41 ns3.digitalocean.com internet address = 198.41.222.173
NS RECORDS = WHO'S IN CHARGE
Nameserver records tell the internet which servers hold the authoritative DNS records for this domain. When you move DNS from one provider to another (e.g. GoDaddy → Cloudflare), you update these NS records at your registrar.
AUTHORITATIVE ANSWERS SECTION
nslookup also shows the IP addresses of the nameservers themselves — a handy bonus that dig puts in the ADDITIONAL section. You can verify the nameserver IPs are resolving correctly.
📝 Example 4 — nslookup -type=TXT github.com (TXT records)
Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: github.com text = "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com ~all" github.com text = "MS=ms44452932" github.com text = "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3fp/iqhkV4HVV7WjYlVeF8" github.com text = "apple-domain-verification=RyQhdzTl6Z6x8ZP4" github.com text = "stripe-verification=f88ef17321660a01bab1660454192e014defa3d53779c5e1f7943cb4673e015b"
SPF RECORD (v=spf1 ...)
The first TXT record is the Sender Policy Framework — it tells email servers which IPs are authorized to send email on behalf of github.com. ~all means "soft fail" (suspicious but accept), while -all means "hard fail" (reject unauthorized senders).
VERIFICATION TOKENS
The other TXT records are domain ownership verifications for Microsoft 365 (MS=), Atlassian, Apple, and Stripe. These services make you add a TXT record to prove you control the domain before they activate their services for it.
🖥️ PLATFORM COMMANDS CHEAT SHEET

nslookup is pre-installed on all major platforms — no installation needed. The syntax is almost identical everywhere, with minor flag differences noted below.

🖼️ Windows (CMD / PowerShell)
Basic lookup (A record):
nslookup devdunia.com
MX records:
nslookup -type=MX gmail.com
Use Cloudflare DNS:
nslookup devdunia.com 1.1.1.1
Enter interactive mode:
nslookup

✔ Ships with Windows since Windows 2000. Works in CMD, PowerShell, and Windows Terminal.

🍎 macOS (Terminal)
Basic lookup (A record):
nslookup devdunia.com
MX records (macOS syntax):
nslookup -query=MX gmail.com
Use Google DNS:
nslookup devdunia.com 8.8.8.8
Interactive mode:
nslookup

✔ Pre-installed on all macOS versions. Tip: macOS also has dig and host built in.

🐧 Linux (bash)
Basic lookup (A record):
nslookup devdunia.com
TXT records:
nslookup -type=TXT github.com
Use custom resolver:
nslookup devdunia.com 9.9.9.9
Install if missing (Debian/Ubuntu):
sudo apt install dnsutils

✔ Part of bind-utils (RHEL/CentOS) or dnsutils (Debian/Ubuntu).


Type nslookup with no arguments to enter interactive mode. A > prompt appears. Then type commands:

$ nslookup > set type=MX ← change record type > gmail.com ← query this domain Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: gmail.com mail exchanger = 5 gmail-smtp-in.l.google.com > server 1.1.1.1 ← switch to Cloudflare DNS Default server: 1.1.1.1 Address: 1.1.1.1#53 > set type=A ← switch back to A > devdunia.com Non-authoritative answer: Name: devdunia.com Address: 185.199.108.153 > exit ← quit
⚡ NSLOOKUP vs DIG COMPARISON REFERENCE

Both tools query DNS, but they have very different strengths. Here's when to reach for each one.

Feature nslookup dig Winner
Windows availability BUILT-IN NEEDS INSTALL (WSL or third-party) nslookup 🏆
macOS availability BUILT-IN BUILT-IN TIE
Linux availability NEEDS dnsutils NEEDS bind-utils TIE
Output verbosity Simpler, human-friendly Detailed, structured (flags, sections, TTL) dig 🤖 for debugging
Scripting / automation LIMITED — inconsistent output format EXCELLENT+short, -f batch flag dig 🏆
Interactive mode YESset type=, server commands YES — but less used nslookup 🏆
Batch file queries LIMITED — shell loops only YESdig -f domains.txt dig 🏆
DNSSEC info NO YES+dnssec, ad flag dig 🏆
Reverse DNS lookup nslookup 8.8.8.8 — automatic dig -x 8.8.8.8 — explicit flag nslookup 🏆 (easier)
Beginner friendly YES — clean output, intuitive MEDIUM — lots of output to parse nslookup 🏆
💡 Rule of thumb: Use nslookup for quick checks on Windows, or when sharing commands with non-Linux folks. Use dig for scripting, debugging propagation, and DNSSEC verification. On Linux/macOS, pros reach for dig +short for fast one-liners.
🧠 HOW NSLOOKUP WORKS DEEP DIVE

When you run nslookup devdunia.com, here's exactly what happens under the hood:

1

nslookup reads your system resolver — it looks up the DNS server configured on your machine (usually from /etc/resolv.conf on Linux/macOS, or network adapter settings on Windows). That's the server it shows in the "Server: 8.8.8.8" line. You can override it by passing a server as the second argument: nslookup devdunia.com 1.1.1.1.

2

UDP query sent to port 53 — nslookup crafts a DNS query packet and sends it over UDP to your resolver on port 53 (shown as #53 in the output). UDP is used because DNS queries are tiny and speed matters — TCP is only used as fallback when the response is too large for one UDP packet.

3

Resolver checks its cache — or recurses — Your resolver (e.g. 8.8.8.8) either has the answer cached from a recent query, or it performs a full recursive lookup: Root servers → TLD nameservers → authoritative nameservers. Because 8.8.8.8 serves billions of queries, most popular domains are cached, giving you a fast response.

4

Non-authoritative vs authoritative answer — If the resolver fetched the answer from the domain's own authoritative nameservers, the authoritative nameserver itself would respond directly (no "Non-authoritative answer" label). Since 8.8.8.8 is not the authoritative server for devdunia.com, it displays "Non-authoritative answer" — meaning it got the data from the authoritative server and cached it. To get an authoritative answer directly, you'd query the domain's own nameserver: nslookup devdunia.com ns1.digitalocean.com.

5

Result displayed and cached — nslookup displays the answer and exits (in non-interactive mode). The resolver caches the result for the record's TTL (Time To Live) — typically 300–86400 seconds. Until TTL expires, future queries hit the cache instantly. When you update DNS records, you may need to wait for TTL to expire before new values propagate worldwide.


Authoritative Answer

Comes directly from the domain's own nameserver. No "Non-authoritative answer" label. Guaranteed to be the latest data. Query: nslookup domain.com ns1.domain.com

Non-Authoritative Answer

Comes from a recursive resolver's cache. May be seconds or hours old (up to TTL). Perfectly normal — this is how DNS works at scale. Not a problem!

TTL (Time To Live)

How many seconds resolvers may cache the record. Before migrating DNS: lower TTL to 300. After migration confirms working: raise back to 3600 or 86400.

NXDOMAIN

nslookup says "can't find domain: NXDOMAIN" — the domain doesn't exist in DNS. Check for typos, or verify the domain is registered and has DNS records configured.