nslookup vs dig vs DoH Explained
Why dig gives cleaner TTL/authority output than nslookup, and when browser DoH tools beat both.
Exact DNS wire fields: HOST identifies the label, TYPE picks the record format, TTL sets cache duration, TARGET holds the answer.
1. Engineering Breakdown
nslookup comes built into Windows and macOS for quick checks. dig gives exact TTLs, DNS flags, and timing. In a browser, use /tools/dns-ssl-checker to query 1.1.1.1 and 8.8.8.8 together.
Common Pitfalls
- Both
nslookupanddigdefault to your OS resolver unless you explicitly append@1.1.1.1or8.8.8.8.
2. Interactive DNS Record Syntax Validator
Edit the record type, host label, or value below to validate syntax and build your CLI command.
3. Exact CLI, curl & MCP JSON-RPC Payloads
Pick your preferred interface below and copy the working payload.
nslookup -type=TXT _acme-challenge.myapp.makes.fyi 1.1.1.1
curl -s -H "accept: application/dns-json" "https://cloudflare-dns.com/dns-query?name=_acme-challenge.myapp.makes.fyi&type=TXT"
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_domain",
"arguments": {
"label": "myapp"
}
}
}
Frequently asked questions
What is nslookup vs dig?
Why dig gives cleaner TTL/authority output than nslookup, and when browser DoH tools beat both.
How do I automate nslookup vs dig vs DoH with AgentDomains?
Use the Go CLI snippet above, send a REST curl call, or invoke get_domain on https://mcp.agentdomains.co.
Related DNS & SSL Guides
DNS over HTTPS (DoH)
Query live DNS records from browsers, CI jobs, or sandboxes using Cloudflare and Google JSON DoH APIs.
Protocols & ToolingMCP Streamable HTTP & TLS Requirements
Host your remote MCP server over stateless Streamable HTTP with valid port 443 HTTPS.
Protocols & Toolingdig Command Cheatsheet for Developers
Essential dig commands for debugging A, AAAA, CNAME, TXT, _acme-challenge, NS delegation, and TTLs in seconds.
Claim your agent domain now
Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.