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 |
|---|---|---|
| 14400s | A | 8.8.8.8 |
| TTL | Type | Answer |
|---|---|---|
| 14400s | MX | 0 investing.am |
| TTL | Type | Answer |
|---|---|---|
| 14400s | TXT | v=spf1 +a +mx +ip4:2.56.205.8 ~all |
| 600s | TXT | godaddyverification=DuIlzc+RrVCD9lOLg1hTpw== |
| TTL | Type | Answer |
|---|---|---|
| 21600s | NS | ns8.reg.am |
| 21600s | NS | ns7.reg.am |
| TTL | Type | Answer |
|---|---|---|
| 21600s | SOA | ns7.reg.am hostmaster.sprybyte.com 2025121602 |
Raw JSON / API equivalent
/api/v1/dns/lookup?q=investing.am
{
"ok": true,
"slug": "dns/lookup",
"title": "DNS lookup (dig)",
"ms": 679,
"data": {
"host": "investing.am",
"types": {
"A": {
"ms": 86,
"count": 1,
"records": [
{
"type": "A",
"ttl": 14400,
"host": "investing.am",
"answer": "8.8.8.8"
}
]
},
"AAAA": {
"ms": 104,
"count": 0,
"records": []
},
"MX": {
"ms": 84,
"count": 1,
"records": [
{
"type": "MX",
"ttl": 14400,
"host": "investing.am",
"answer": "0 investing.am",
"priority": 0,
"target": "investing.am"
}
]
},
"TXT": {
"ms": 20,
"count": 2,
"records": [
{
"type": "TXT",
"ttl": 14400,
"host": "investing.am",
"answer": "v=spf1 +a +mx +ip4:2.56.205.8 ~all"
},
{
"type": "TXT",
"ttl": 600,
"host": "investing.am",
"answer": "godaddyverification=DuIlzc+RrVCD9lOLg1hTpw=="
}
]
},
"CNAME": {
"ms": 69,
"count": 0,
"records": []
},
"NS": {
"ms": 91,
"count": 2,
"records": [
{
"type": "NS",
"ttl": 21600,
"host": "investing.am",
"answer": "ns8.reg.am"
},
{
"type": "NS",
"ttl": 21600,
"host": "investing.am",
"answer": "ns7.reg.am"
}
]
},
"SOA": {
"ms": 19,
"count": 1,
"records": [
{
"type": "SOA",
"ttl": 21600,
"host": "investing.am",
"answer": "ns7.reg.am hostmaster.sprybyte.com 2025121602",
"mname": "ns7.reg.am",
"rname": "hostmaster.sprybyte.com",
"serial": 2025121602,
"refresh": 3600,
"retry": 1800,
"expire": 1209600,
"min_ttl": 86400
}
]
},
"SRV": {
"ms": 57,
"count": 0,
"records": []
},
"PTR": {
"ms": 110,
"count": 0,
"records": []
},
"CAA": {
"ms": 40,
"count": 0,
"records": []
}
},
"ms": 679
},
"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=investing.am
curl -s '/api/v1/dns/lookup?q=investing.am'
<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