# HostHunter

> Python tool that finds hostnames for a list of IP addresses from certificates, headers and a free API.

Source: https://osinttools.io/tools/hosthunter/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** IP address, File
- **Category:** Infrastructure and domains
- **Pricing:** Open source (Free and open source (MIT).)
- **Footprint:** active (contacts the target or the services it checks)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/SpiderLabs/HostHunter
- **GitHub:** SpiderLabs/HostHunter, 1,178 stars · Python · MIT · last commit 2023-03-30 · dormant (no commit on the default branch in 18 months)
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

HostHunter takes a file of IPv4 or IPv6 addresses and discovers the hostnames served on them by reading TLS certificates, HTTP headers and service banners, and by querying the free HackerTarget API. It can take screenshots and export CSV, TXT or Nessus target files.

Testers use it at the scoping stage of an authorised engagement to see which virtual hosts sit behind an organisation's IP ranges.

Footprint is active: it contacts the target or the services it is checking, which can be logged on the other side. No account is needed. There is no public API.

## Features

- Hostnames from TLS certificates
- HTTP header and banner checks
- HackerTarget reverse IP lookups
- Screenshots
- CSV, TXT and Nessus output
- IPv6 support

## Pros

- Maps IPs to virtual hosts quickly
- Output feeds directly into scanners
- Simple command line

## Cons

- It has had no code changes since March 2023 and may no longer work.
- Connects to the target IPs, so use it only on ranges you are authorised to test
- Free API lookups are rate-limited per day

## When to use it

- Use it when you have an IP range in scope and need the hostnames behind it.
- Use it when preparing a Nessus target list from discovered hostnames.

## Quick start

Terminal · Python 3.10:

```
python3.10 -m pip install -r requirements.txt
python3.10 hosthunter.py <targets.txt>
```

## Alternatives

- [IPinfo](https://osinttools.io/tools/ipinfo/): IP address data: geolocation, ASN, hosting provider, company, privacy/VPN detection and abuse contacts. (Freemium · IP address · passive)
- [bgp.tools](https://osinttools.io/tools/bgp-tools/): Routing lookup site for ASNs and prefixes with live BGP data, upstreams, peers, and network monitoring. (Freemium · IP address · passive)
- [Shodan](https://osinttools.io/tools/shodan/): Search engine for internet-connected hosts, indexing open ports, service banners and TLS certificates by IP. (Freemium · IP address, Domain · passive)
- [Censys](https://osinttools.io/tools/censys/): Internet-wide scan data for hosts, services and certificates, searchable through the Censys Platform. (Freemium · IP address, Domain · passive)
- [Domain Digger](https://osinttools.io/tools/domain-digger/): Web app for DNS records, global DNS lookups, WHOIS, IP details and certificate history of a domain. (Open source · Domain, IP address · passive · 1,561 GitHub stars)
- [DomainTools Whois Lookup](https://osinttools.io/tools/domaintools-whois/): Free WHOIS lookup for domains and IPs from DomainTools, with paid history and reverse WHOIS behind it. (Freemium · Domain, IP address · passive)

All alternatives to HostHunter in one table: https://osinttools.io/tools/hosthunter/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
