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 |
|---|---|---|
| 3600s | A | 1.1.1.1 |
| TTL | Type | Answer |
|---|---|---|
| 14400s | MX | 10 mx1.privateemail.com |
| 14400s | MX | 10 mx2.privateemail.com |
| TTL | Type | Answer |
|---|---|---|
| 3600s | TXT | v=spf1 include:spf.privateemail.com ~all |
| 3600s | TXT | default._domainkey IN TXT ("v=DKIM1;k=rsa;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq/mcJeqYEBOQkn7pMAGT1ZFCv9Yry89n06rABKR/YxVH6FI50Lx6MufOf9LCv4CC66zdvuvJUrJfQm4fvdCHGylbK38YYCribHhXVKXo5/iUwf8AheOMgjmykcNwtwzVMSIBah9Jmi9ThmPdjpZPQ3FH2w/OI6y1sogOgfj5PlsD465yEbLCZ5ZbWq/exlp2N4NhgIERqnAGLoAi6mgVydkuTJGwwdnhiFr/CCV8QXveCw+MQYzkeoxb4F/OREVSqaax1qHb7nswqc1FqPkK1E3isz7uvlgusdqnWqi8Hl8obWXjHDR8rjz5Fl7V65NXdIn0ueh/5pn/evAbtvM3qQIDAQAB"); |
| TTL | Type | Answer |
|---|---|---|
| 1800s | NS | ns1.digitalocean.com |
| 1800s | NS | ns2.digitalocean.com |
| 1800s | NS | ns3.digitalocean.com |
| TTL | Type | Answer |
|---|---|---|
| 1800s | SOA | ns1.digitalocean.com hostmaster.digitalgrowth.ai 0 |
Raw JSON / API equivalent
/api/v1/dns/lookup?q=digitalgrowth.ai
{
"ok": true,
"slug": "dns/lookup",
"title": "DNS lookup (dig)",
"ms": 428,
"data": {
"host": "digitalgrowth.ai",
"types": {
"A": {
"ms": 22,
"count": 1,
"records": [
{
"type": "A",
"ttl": 3600,
"host": "digitalgrowth.ai",
"answer": "1.1.1.1"
}
]
},
"AAAA": {
"ms": 64,
"count": 0,
"records": []
},
"MX": {
"ms": 16,
"count": 2,
"records": [
{
"type": "MX",
"ttl": 14400,
"host": "digitalgrowth.ai",
"answer": "10 mx1.privateemail.com",
"priority": 10,
"target": "mx1.privateemail.com"
},
{
"type": "MX",
"ttl": 14400,
"host": "digitalgrowth.ai",
"answer": "10 mx2.privateemail.com",
"priority": 10,
"target": "mx2.privateemail.com"
}
]
},
"TXT": {
"ms": 55,
"count": 2,
"records": [
{
"type": "TXT",
"ttl": 3600,
"host": "digitalgrowth.ai",
"answer": "v=spf1 include:spf.privateemail.com ~all"
},
{
"type": "TXT",
"ttl": 3600,
"host": "digitalgrowth.ai",
"answer": "default._domainkey IN TXT (\"v=DKIM1;k=rsa;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq/mcJeqYEBOQkn7pMAGT1ZFCv9Yry89n06rABKR/YxVH6FI50Lx6MufOf9LCv4CC66zdvuvJUrJfQm4fvdCHGylbK38YYCribHhXVKXo5/iUwf8AheOMgjmykcNwtwzVMSIBah9Jmi9ThmPdjpZPQ3FH2w/OI6y1sogOgfj5PlsD465yEbLCZ5ZbWq/exlp2N4NhgIERqnAGLoAi6mgVydkuTJGwwdnhiFr/CCV8QXveCw+MQYzkeoxb4F/OREVSqaax1qHb7nswqc1FqPkK1E3isz7uvlgusdqnWqi8Hl8obWXjHDR8rjz5Fl7V65NXdIn0ueh/5pn/evAbtvM3qQIDAQAB\");"
}
]
},
"CNAME": {
"ms": 65,
"count": 0,
"records": []
},
"NS": {
"ms": 15,
"count": 3,
"records": [
{
"type": "NS",
"ttl": 1800,
"host": "digitalgrowth.ai",
"answer": "ns1.digitalocean.com"
},
{
"type": "NS",
"ttl": 1800,
"host": "digitalgrowth.ai",
"answer": "ns2.digitalocean.com"
},
{
"type": "NS",
"ttl": 1800,
"host": "digitalgrowth.ai",
"answer": "ns3.digitalocean.com"
}
]
},
"SOA": {
"ms": 17,
"count": 1,
"records": [
{
"type": "SOA",
"ttl": 1800,
"host": "digitalgrowth.ai",
"answer": "ns1.digitalocean.com hostmaster.digitalgrowth.ai 0",
"mname": "ns1.digitalocean.com",
"rname": "hostmaster.digitalgrowth.ai",
"serial": 0,
"refresh": 10800,
"retry": 3600,
"expire": 604800,
"min_ttl": 1800
}
]
},
"SRV": {
"ms": 142,
"count": 0,
"records": []
},
"PTR": {
"ms": 16,
"count": 0,
"records": []
},
"CAA": {
"ms": 16,
"count": 0,
"records": []
}
},
"ms": 427
},
"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=digitalgrowth.ai
curl -s '/api/v1/dns/lookup?q=digitalgrowth.ai'
<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