Collects basic domain data and generates structured reports.
DomainLens is a lightweight passive reconnaissance CLI tool designed for defenders, students and authorized security testing.
It collects key information about a domain and exports it into clean, readable reports.
The tool focuses on collecting and organizing publicly available data about a domain. It does not perform exploitation or intrusive scanning.
- DNS records (A, AAAA, CNAME, MX, TXT, NS)
- HTTP / HTTPS checks
- status code
- redirect chain
- response time
- server header
- robots.txt and sitemap.xml detection
- selected HTTP security headers
- TLS certificate details
- issuer
- expiry date
- subject alternative names
- optional subdomain lookup using crt.sh
From source:
git clone https://github.com/shelvy1337/domainlens.git
cd domainlens
pip install -e .Alternatively:
pip install -r requirements.txtDomainLens includes a simple evaluation layer based on collected data:
- basic security score (0–100)
- header presence checks
- detection of common configuration issues
- list of findings with severity levels and short recommendations
This is meant as a quick overview, not a full security assessment.
Basic scan:
domainlens example.comFull scan:
domainlens example.com --allCustom output directory:
domainlens example.com --out reports/Enable subdomain lookup:
domainlens example.com --subdomainsResults are written to:
report.json– structured outputreport.md– readable report
Example:
reports/example.com/report.json
reports/example.com/report.md
- Python 3.10+
This tool is intended for educational purposes and authorized security testing only.
Use DomainLens only on:
- domains you own, or
- systems you have explicit permission to test.
DomainLens performs passive reconnaissance and does not include exploitation, brute force or phishing functionality.
