Skip to content

DNS Lookup API

11 endpointsUtilitiesGlobalsocial:read9 real examples

Returns DNS records of a domain, including A, MX, TXT, NS, CAA, SOA and DNSKEY, and reverse DNS names of IPs.

View as Markdown
GET/dnslookup/lookupDNS records of a domain (A, AAAA, MX, TXT, NS or CNAME).
GET/dnslookup/reverseThe PTR (reverse DNS) name of a public IP address.
GET/dnslookup/recordsThe common records of a domain in one answer: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA and HTTPS.
GET/dnslookup/caaCAA records: the certificate authorities that may issue for a domain.
GET/dnslookup/soaSOA record of a zone: primary name server, contact and timers.
GET/dnslookup/dnskeyDNSSEC DNSKEY records of a zone (keys signing its records).
GET/dnslookup/dsDS records the parent zone publishes for a signed zone (DNSSEC chain of trust).
GET/dnslookup/httpsHTTPS service binding records: ALPN protocols and address hints.
GET/dnslookup/srvSRV records of a service on a domain, such as the IMAPS server of gmail.com.
GET/dnslookup/mailAuthThe email sender policies of a domain: its SPF record and DMARC policy, with the handling each one asks for.
GET/dnslookup/dkimThe DKIM public key of a domain for one selector: the TXT record that verifies the mail the domain signs.

lookup

GET/v1/dnslookup/lookup

DNS records of a domain (A, AAAA, MX, TXT, NS or CNAME).

scope social:read1 unitcached 5 min

Parameters

name
string
required
Domain name, such as example.com.
e.g. gmail.com
type
string
Record type: A, AAAA, MX, TXT, NS or CNAME.
AAAAAMXTXTNSCNAMESOACAADNSKEYDSHTTPS
default Ae.g. MX
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/lookup?name=gmail.com&type=MX" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "name": "gmail.com",
    "provider": "google",
    "records": [
      {
        "data": "10 alt1.gmail-smtp-in.l.google.com.",
        "name": "gmail.com",
        "ttl": 1276,
        "type": "MX"
      },
      {
        "data": "20 alt2.gmail-smtp-in.l.google.com.",
        "name": "gmail.com",
        "ttl": 1276,
        "type": "MX"
      }
    ],
    "status": "NOERROR",
    "type": "MX",
    "validated": false
  },
  "meta": {
    "cached": false,
    "endpoint": "lookup",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

reverse

GET/v1/dnslookup/reverse

The PTR (reverse DNS) name of a public IP address.

scope social:read1 unitcached 30 min

Parameters

ip
string
required
Public IPv4 or IPv6 address.
e.g. 8.8.8.8
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/reverse?ip=8.8.8.8" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "name": "8.8.8.8.in-addr.arpa",
    "provider": "google",
    "records": [
      {
        "data": "dns.google.",
        "name": "8.8.8.8.in-addr.arpa",
        "ttl": 9345,
        "type": "PTR"
      }
    ],
    "status": "NOERROR",
    "type": "PTR",
    "validated": false
  },
  "meta": {
    "cached": false,
    "endpoint": "reverse",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

records

GET/v1/dnslookup/records

The common records of a domain in one answer: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA and HTTPS.

scope social:read9 unitscached 5 min

Parameters

name
string
required
Domain name, such as example.com.
e.g. example.com
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
lookupsLookup[]
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
namestring
providerstring
curl "https://api.hoshime.com/v1/dnslookup/records?name=example.com" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "lookups": [
      {
        "name": "example.com",
        "provider": "google",
        "records": [
          {
            "data": "104.20.23.154",
            "name": "example.com",
            "ttl": 231,
            "type": "A"
          },
          {
            "data": "172.66.147.243",
            "name": "example.com",
            "ttl": 231,
            "type": "A"
          }
        ],
        "status": "NOERROR",
        "type": "A",
        "validated": true
      },
      {
        "name": "example.com",
        "provider": "google",
        "records": [
          {
            "data": "2606:4700:10::ac42:93f3",
            "name": "example.com",
            "ttl": 300,
            "type": "AAAA"
          },
          {
            "data": "2606:4700:10::6814:179a",
            "name": "example.com",
            "ttl": 300,
            "type": "AAAA"
          }
        ],
        "status": "NOERROR",
        "type": "AAAA",
        "validated": true
      }
    ],
    "name": "example.com",
    "provider": "google"
  },
  "meta": {
    "cached": false,
    "endpoint": "records",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 9
  }
}

caa

GET/v1/dnslookup/caa

CAA records: the certificate authorities that may issue for a domain.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Domain name, such as example.com.
e.g. google.com
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/caa?name=google.com" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "name": "google.com",
    "provider": "google",
    "records": [
      {
        "data": "0 issue \"pki.goog\"",
        "name": "google.com",
        "ttl": 19491,
        "type": "CAA"
      }
    ],
    "status": "NOERROR",
    "type": "CAA",
    "validated": false
  },
  "meta": {
    "cached": false,
    "endpoint": "caa",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

soa

GET/v1/dnslookup/soa

SOA record of a zone: primary name server, contact and timers.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Domain name, such as example.com.
e.g. example.com
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/soa?name=example.com" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "name": "example.com",
    "provider": "google",
    "records": [
      {
        "data": "elliott.ns.cloudflare.com. dns.cloudflare.com. 2418004112 10000 2400 604800 1800",
        "name": "example.com",
        "ttl": 1062,
        "type": "SOA"
      }
    ],
    "status": "NOERROR",
    "type": "SOA",
    "validated": true
  },
  "meta": {
    "cached": false,
    "endpoint": "soa",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

dnskey

GET/v1/dnslookup/dnskey

DNSSEC DNSKEY records of a zone (keys signing its records).

scope social:read1 unitcached 1 h

Parameters

name
string
required
Domain name, such as example.com.
e.g. example.com
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/dnskey?name=example.com" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "name": "example.com",
    "provider": "google",
    "records": [
      {
        "data": "256 3 13 kxipjoIbNZDsWqEKaYaGq6fM/XThrRp1ue6AV9R/n3eWxpGCeCWJb47PEEEj/Q6VAYFW/7UFo5mXoZfxKYZa3A==",
        "name": "example.com",
        "ttl": 1450,
        "type": "DNSKEY"
      },
      {
        "data": "256 3 13 oJMRESz5E4gYzS/q6XDrvU1qMPYIjCWzJaOau8XNEZeqCYKD5ar0IRd8KqXXFJkqmVfRvMGPmM1x8fGAa2XhSA==",
        "name": "example.com",
        "ttl": 1450,
        "type": "DNSKEY"
      }
    ],
    "status": "NOERROR",
    "type": "DNSKEY",
    "validated": true
  },
  "meta": {
    "cached": false,
    "endpoint": "dnskey",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

ds

GET/v1/dnslookup/ds

DS records the parent zone publishes for a signed zone (DNSSEC chain of trust).

scope social:read1 unitcached 1 h

Parameters

name
string
required
Domain name, such as example.com.
e.g. example.com
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/ds?name=example.com" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "name": "example.com",
    "provider": "google",
    "records": [
      {
        "data": "2371 13 2 C988EC423E3880EB8DD8A46FE06CA230EE23F35B578D64E78B29C3E1C83D245A",
        "name": "example.com",
        "ttl": 7112,
        "type": "DS"
      }
    ],
    "status": "NOERROR",
    "type": "DS",
    "validated": true
  },
  "meta": {
    "cached": false,
    "endpoint": "ds",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

https

GET/v1/dnslookup/https

HTTPS service binding records: ALPN protocols and address hints.

scope social:read1 unitcached 5 min

Parameters

name
string
required
Domain name, such as example.com.
e.g. example.com
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/https?name=example.com" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "name": "example.com",
    "provider": "google",
    "records": [
      {
        "data": "1 . alpn=h3,h2 ipv4hint=104.20.23.154,172.66.147.243 ipv6hint=2606:4700:10::6814:179a,2606:4700:10::ac42:93f3",
        "name": "example.com",
        "ttl": 300,
        "type": "HTTPS"
      }
    ],
    "status": "NOERROR",
    "type": "HTTPS",
    "validated": true
  },
  "meta": {
    "cached": false,
    "endpoint": "https",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

srv

GET/v1/dnslookup/srv

SRV records of a service on a domain, such as the IMAPS server of gmail.com.

scope social:read1 unitcached 1 h

Parameters

service
string
required
Service label without the underscore, such as imaps, submission or caldavs.
e.g. imaps
proto
string
required
Transport protocol: tcp or udp.
tcpudp
e.g. tcp
domain
string
required
Domain name that publishes the service, such as gmail.com.
e.g. gmail.com
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/srv?service=imaps&proto=tcp&domain=gmail.com" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "name": "_imaps._tcp.gmail.com",
    "provider": "google",
    "records": [
      {
        "data": "5 0 993 imap.gmail.com.",
        "name": "_imaps._tcp.gmail.com",
        "ttl": 21600,
        "type": "SRV"
      }
    ],
    "status": "NOERROR",
    "type": "SRV",
    "validated": false
  },
  "meta": {
    "cached": false,
    "endpoint": "srv",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

mailAuth

GET/v1/dnslookup/mailAuth

The email sender policies of a domain: its SPF record and DMARC policy, with the handling each one asks for.

scope social:read2 unitscached 1 h

Parameters

name
string
required
Domain name, such as example.com.
e.g. gmail.com
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

7 fields
dmarcstring
dmarcPolicystring
dmarcSubdomainPolicystring
namestring
providerstring
spfstring
spfAllstring
curl "https://api.hoshime.com/v1/dnslookup/mailAuth?name=gmail.com" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "dmarc": "…",
    "dmarcPolicy": "…",
    "dmarcSubdomainPolicy": "…",
    "name": "…",
    "provider": "…",
    "spf": "…",
    "spfAll": "…"
  },
  "meta": {
    "cached": false,
    "endpoint": "mailAuth",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 2
  }
}

dkim

GET/v1/dnslookup/dkim

The DKIM public key of a domain for one selector: the TXT record that verifies the mail the domain signs.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Domain name, such as example.com.
e.g. gmail.com
selector
string
required
DKIM selector the mail is signed with, such as 20230601 or selector1; the s= tag of a DKIM-Signature header.
e.g. 20230601
provider
string
Resolver: google or cloudflare.
googlecloudflare
default google
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
namestring
providerstring
recordsRecord[]
datastring
namestring
ttlinteger (int64)
typestring
statusstring
typestring
validatedboolean
curl "https://api.hoshime.com/v1/dnslookup/dkim?name=gmail.com&selector=20230601" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "name": "…",
    "provider": "…",
    "records": [
      {
        "data": "…",
        "name": "…",
        "ttl": 0,
        "type": "…"
      }
    ],
    "status": "…",
    "type": "…",
    "validated": false
  },
  "meta": {
    "cached": false,
    "endpoint": "dkim",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "dnslookup",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open