Generate insightful CSV reports on batches of domain names
- Shell 100%
| drep.sh | ||
| LICENSE | ||
| README.md | ||
Domain Reporter (drep.sh)
drep.sh is a Bash script that checks one or more domain names and outputs a machine-readable report including:
- DNS availability
- HTTP and HTTPS response status
- HTTPS certificate details (subject, issuer, email)
- WHOIS information (registrar, status, registration/creation date)
The output is formatted as CSV for easy parsing.
Installation
-
Make sure you have the required tools installed:
sudo apt update sudo apt install -y curl jq openssl whois dnsutils -
Clone or copy the script to your local machine:
git clone git@forgejo.parcifal.dev/drep.git cd drep -
Make the script executable:
chmod +x drep.sh
Usage
Run the script with one or more domain names as arguments:
./drep.sh stackoverflow.com gaston-lagaffe.be
Example output (CSV):
domain,dns available,http status,https status,https subject,https issuer,https email,whois registrar,whois status,whois registered
stackoverflow.com,<yes>,<redirect https://stackoverflow.com/questions>,<other>,stackoverflow.com,US; Let's Encrypt; E7,<n/a>,<n/a>,<n/a>,<n/a>
gaston-lagaffe.be,<no>,<n/a>,<n/a>,<n/a>,<n/a>,<n/a>,<n/a>,AVAILABLE,<n/a>
Example output, formatted as a table:
| domain | dns available | http status | https status | https subject | https issuer | https email | whois registrar | whois status | whois registered |
|---|---|---|---|---|---|---|---|---|---|
stackoverflow.com |
<yes> |
<redirect https://stackoverflow.com/questions> |
<other> |
stackoverflow.com | US; Let's Encrypt; E7 | <n/a> |
<n/a> |
<n/a> |
<n/a> |
gaston-lagaffe.be |
<no> |
<n/a> |
<n/a> |
<n/a> |
<n/a> |
<n/a> |
<n/a> |
AVAILABLE | <n/a> |
Notes
- DNS must resolve for HTTP/HTTPS checks and certificate retrieval.
- Redirect URLs are included in the CSV output.
- Fields without data are marked
<n/a>. - The script is designed for Linux environments with Bash.
License
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.