Skip to Content
IP AtlasDocs
Lookup API

Look up a hostname

GET /api/v1/lookup/host/{name} — every address a hostname resolves to, each with its answer.

GET /api/v1/lookup/host/dns.google?fields=location,network,privacy
Authorization: Bearer <key>
{
  "status": "success",
  "data": {
    "host": "dns.google",
    "resolvedAt": "2026-11-26T13:28:41.112Z",
    "ttl": 300,
    "addresses": [
      { "ip": "8.8.4.4", "bogon": false, "location": { "...": "..." }, "network": { "asn": 15169, "...": "..." }, "privacy": { "hosting": true, "...": "..." }, "release": "2026.11.26-4" },
      { "ip": "8.8.8.8", "...": "..." },
      { "ip": "2001:4860:4860::8888", "...": "..." },
      { "ip": "2001:4860:4860::8844", "...": "..." }
    ],
    "truncated": false,
    "release": "2026.11.26-4"
  }
}

IP Atlas resolves the name's A and AAAA records, then answers each address exactly as /lookup/{ip} would. fields works the same way.

  • Needs the host field group on the key; without it the call returns 403 FIELD_GROUP_NOT_ALLOWED.
  • Every address answered counts as one lookup against the per-minute limit and monthly quota (the four addresses above cost four). At most 8 addresses are answered; truncated says when a name has more.
  • Names, not URLs: example.et, www.example.et or an internationalised name (bücher.de, returned in its ASCII form). Send an IP address to /lookup/{ip} instead.

Read the answer with care

  • A CDN or cloud answers for the site. Most websites sit behind Cloudflare, Fastly, AWS or similar: the addresses, and so the location and network, are the provider's edge, not where the site's owner or origin server is. Those addresses come back with privacy.hosting or privacy.relay set and the provider in network.organization / privacy.service.
  • DNS answers vary. IP Atlas resolves through public resolvers at resolvedAt; another resolver, place or time can get different addresses. The answer is cached for the record's TTL (30 to 300 seconds), and Cache-Control says so.

Names IP Atlas won't resolve

Internal and reserved names are refused before any DNS query (400 HOST_NOT_ALLOWED): localhost, .local, .internal, .lan, .home, .corp, .home.arpa, .test, .invalid, .example, .onion and similar. So is a name that resolves only to private or reserved addresses; the response doesn't say which.

HTTPcodeWhen
400INVALID_HOSTNot a hostname (an IP address, a single word, bad characters)
400HOST_NOT_ALLOWEDAn internal or reserved name, or one that resolves only to private addresses
404HOST_NOT_FOUNDThe name has no A or AAAA record
502HOST_RESOLUTION_FAILEDDNS timed out or failed; try again

On this page