DNS lookup (dig)
DNS /api/v1/dns/lookupQuery A, AAAA, MX, TXT, CNAME, NS, SOA, SRV, CAA, PTR — all types at once.
| TTL | Type | Answer |
|---|---|---|
| 300s | A | 1.1.1.1 |
| TTL | Type | Answer |
|---|---|---|
| 300s | MX | 10 eforward1.registrar-servers.com |
| 300s | MX | 10 eforward2.registrar-servers.com |
| 300s | MX | 10 eforward3.registrar-servers.com |
| 300s | MX | 15 eforward4.registrar-servers.com |
| 300s | MX | 20 eforward5.registrar-servers.com |
| TTL | Type | Answer |
|---|---|---|
| 300s | TXT | v=spf1 include:spf.efwd.registrar-servers.com ~all |
| TTL | Type | Answer |
|---|---|---|
| 86400s | NS | becky.ns.cloudflare.com |
| 86400s | NS | eric.ns.cloudflare.com |
| TTL | Type | Answer |
|---|---|---|
| 1800s | SOA | becky.ns.cloudflare.com dns.cloudflare.com 2400907148 |
Raw JSON / API equivalent
/api/v1/dns/lookup?q=pockethaul.app
{
"ok": true,
"slug": "dns/lookup",
"title": "DNS lookup (dig)",
"ms": 328,
"data": {
"host": "pockethaul.app",
"types": {
"A": {
"ms": 21,
"count": 1,
"records": [
{
"type": "A",
"ttl": 300,
"host": "pockethaul.app",
"answer": "1.1.1.1"
}
]
},
"AAAA": {
"ms": 124,
"count": 0,
"records": []
},
"MX": {
"ms": 19,
"count": 5,
"records": [
{
"type": "MX",
"ttl": 300,
"host": "pockethaul.app",
"answer": "10 eforward1.registrar-servers.com",
"priority": 10,
"target": "eforward1.registrar-servers.com"
},
{
"type": "MX",
"ttl": 300,
"host": "pockethaul.app",
"answer": "10 eforward2.registrar-servers.com",
"priority": 10,
"target": "eforward2.registrar-servers.com"
},
{
"type": "MX",
"ttl": 300,
"host": "pockethaul.app",
"answer": "10 eforward3.registrar-servers.com",
"priority": 10,
"target": "eforward3.registrar-servers.com"
},
{
"type": "MX",
"ttl": 300,
"host": "pockethaul.app",
"answer": "15 eforward4.registrar-servers.com",
"priority": 15,
"target": "eforward4.registrar-servers.com"
},
{
"type": "MX",
"ttl": 300,
"host": "pockethaul.app",
"answer": "20 eforward5.registrar-servers.com",
"priority": 20,
"target": "eforward5.registrar-servers.com"
}
]
},
"TXT": {
"ms": 25,
"count": 1,
"records": [
{
"type": "TXT",
"ttl": 300,
"host": "pockethaul.app",
"answer": "v=spf1 include:spf.efwd.registrar-servers.com ~all"
}
]
},
"CNAME": {
"ms": 42,
"count": 0,
"records": []
},
"NS": {
"ms": 18,
"count": 2,
"records": [
{
"type": "NS",
"ttl": 86400,
"host": "pockethaul.app",
"answer": "becky.ns.cloudflare.com"
},
{
"type": "NS",
"ttl": 86400,
"host": "pockethaul.app",
"answer": "eric.ns.cloudflare.com"
}
]
},
"SOA": {
"ms": 6,
"count": 1,
"records": [
{
"type": "SOA",
"ttl": 1800,
"host": "pockethaul.app",
"answer": "becky.ns.cloudflare.com dns.cloudflare.com 2400907148",
"mname": "becky.ns.cloudflare.com",
"rname": "dns.cloudflare.com",
"serial": 2400907148,
"refresh": 10000,
"retry": 2400,
"expire": 604800,
"min_ttl": 1800
}
]
},
"SRV": {
"ms": 49,
"count": 0,
"records": []
},
"PTR": {
"ms": 11,
"count": 0,
"records": []
},
"CAA": {
"ms": 13,
"count": 0,
"records": []
}
},
"ms": 328
},
"source": "live",
"meta": []
}
-
1
Paste your input
Enter the value at the top — domain, IP, URL, email, ASN, hash, whatever fits this tool. The smart input auto-detects type.
-
2
Click "Inspect"
host.tools issues real probes (DNS, HTTP, TCP, TLS, WHOIS where applicable) and renders the result in milliseconds.
-
3
Open the API tab
Every web tool has a sibling /api/v1/dns/lookup JSON endpoint with the same payload. One copy-as-curl click and you're scripting it.
DNS is the routing layer for everything you do on the internet. A bad TTL, a missing MX or an unsigned zone propagates outages and inboxes-full-of-spam in minutes. Verify before you ship.
/api/v1/dns/lookup?q=pockethaul.app
curl -s '/api/v1/dns/lookup?q=pockethaul.app'
<iframe src="/dns/lookup?q={INPUT}&embed=1"
width="100%" height="600" frameborder="0"></iframe>
Drop into any HTML page. The embed=1 flag hides nav and footer.
Common questions
Is DNS lookup (dig) free?
Where does the data come from?
How fresh are the results?
?nocache=1 for a forced refresh.Can I run this from the command line?
host.tools dns lookup YOUR_INPUT.Can I monitor results over time?
Run DNS lookup (dig) on a schedule. Get pinged when it changes.
Pro gets you bulk lookups, monitors, webhook alerts, history, exports and 10,000 API calls/day. $19/mo.
- ✓Schedule any tool — every 1, 5, 15, 60 min
- ✓Diff against last run, alert on change
- ✓Webhook + email + Slack + PagerDuty + OpsGenie
- ✓Bulk CSV upload, 1,000 inputs per job
- ✓Export results as CSV / NDJSON / Excel
- ✓90-day history, comparison view