host.tools

DNS lookup (dig)

DNS /api/v1/dns/lookup

Query A, AAAA, MX, TXT, CNAME, NS, SOA, SRV, CAA, PTR — all types at once.

Host
host.com
Total time
12 ms
Source
live
Records found
9
A 2 records
1 ms
TTLTypeAnswer
11s A 172.67.180.245
11s A 104.21.31.241
AAAA 2 records
0 ms
TTLTypeAnswer
218s AAAA 2606:4700:3031::6815:1ff1
218s AAAA 2606:4700:3031::ac43:b4f5
MX 1 record
5 ms
TTLTypeAnswer
300s MX 10 mail.host.com
TXT 1 record
1 ms
TTLTypeAnswer
253s TXT v=spf1 mx a ~all
NS 2 records
1 ms
TTLTypeAnswer
70752s NS elliot.ns.cloudflare.com
70752s NS violet.ns.cloudflare.com
SOA 1 record
1 ms
TTLTypeAnswer
1072s SOA elliot.ns.cloudflare.com dns.cloudflare.com 2402563822
Raw JSON / API equivalent
JSON endpoint
/api/v1/dns/lookup?q=host.com
{
    "ok": true,
    "slug": "dns/lookup",
    "title": "DNS lookup (dig)",
    "ms": 12,
    "data": {
        "host": "host.com",
        "types": {
            "A": {
                "ms": 1,
                "count": 2,
                "records": [
                    {
                        "type": "A",
                        "ttl": 11,
                        "host": "host.com",
                        "answer": "172.67.180.245"
                    },
                    {
                        "type": "A",
                        "ttl": 11,
                        "host": "host.com",
                        "answer": "104.21.31.241"
                    }
                ]
            },
            "AAAA": {
                "ms": 0,
                "count": 2,
                "records": [
                    {
                        "type": "AAAA",
                        "ttl": 218,
                        "host": "host.com",
                        "answer": "2606:4700:3031::6815:1ff1"
                    },
                    {
                        "type": "AAAA",
                        "ttl": 218,
                        "host": "host.com",
                        "answer": "2606:4700:3031::ac43:b4f5"
                    }
                ]
            },
            "MX": {
                "ms": 5,
                "count": 1,
                "records": [
                    {
                        "type": "MX",
                        "ttl": 300,
                        "host": "host.com",
                        "answer": "10 mail.host.com",
                        "priority": 10,
                        "target": "mail.host.com"
                    }
                ]
            },
            "TXT": {
                "ms": 1,
                "count": 1,
                "records": [
                    {
                        "type": "TXT",
                        "ttl": 253,
                        "host": "host.com",
                        "answer": "v=spf1 mx a ~all"
                    }
                ]
            },
            "CNAME": {
                "ms": 1,
                "count": 0,
                "records": []
            },
            "NS": {
                "ms": 1,
                "count": 2,
                "records": [
                    {
                        "type": "NS",
                        "ttl": 70752,
                        "host": "host.com",
                        "answer": "elliot.ns.cloudflare.com"
                    },
                    {
                        "type": "NS",
                        "ttl": 70752,
                        "host": "host.com",
                        "answer": "violet.ns.cloudflare.com"
                    }
                ]
            },
            "SOA": {
                "ms": 1,
                "count": 1,
                "records": [
                    {
                        "type": "SOA",
                        "ttl": 1072,
                        "host": "host.com",
                        "answer": "elliot.ns.cloudflare.com dns.cloudflare.com 2402563822",
                        "mname": "elliot.ns.cloudflare.com",
                        "rname": "dns.cloudflare.com",
                        "serial": 2402563822,
                        "refresh": 10000,
                        "retry": 2400,
                        "expire": 604800,
                        "min_ttl": 1800
                    }
                ]
            },
            "SRV": {
                "ms": 1,
                "count": 0,
                "records": []
            },
            "PTR": {
                "ms": 1,
                "count": 0,
                "records": []
            },
            "CAA": {
                "ms": 1,
                "count": 0,
                "records": []
            }
        },
        "ms": 12
    },
    "source": "live",
    "meta": []
}
How to use DNS lookup (dig)
  1. 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. 2
    Click "Inspect"

    host.tools issues real probes (DNS, HTTP, TCP, TLS, WHOIS where applicable) and renders the result in milliseconds.

  3. 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.

Why this matters

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 equivalent
/api/v1/dns/lookup?q=host.com
curl -s '/api/v1/dns/lookup?q=host.com'
Embed this tool
<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.

FAQ · DNS lookup (dig)

Common questions

Is DNS lookup (dig) free?
Yes — every tool is free on the web with a 200/hour rate limit per IP. The matching API endpoint /api/v1/dns/lookup is free up to 100 requests/hour, no key required.
Where does the data come from?
Real-time probes against authoritative sources (DNS root, RIRs, registries, the target server itself), plus partner data feeds from hostinfo.com (GeoIP/ASN) and hostcheck.com (reputation).
How fresh are the results?
Live by default. Cached for 5 minutes to make repeat queries instant; pass ?nocache=1 for a forced refresh.
Can I run this from the command line?
Yes — every tool ships with a copy-as-curl. There's also an official CLI: host.tools dns lookup YOUR_INPUT.
Can I monitor results over time?
Pro tier lets you schedule any tool to run every 1/5/15/60 min and alert on diff. See monitors.
host.tools Pro

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