Generate insightful CSV reports on batches of domain names
Find a file
2026-02-02 10:51:40 +01:00
drep.sh Initial commit 2025-11-10 23:01:01 +01:00
LICENSE Initial commit 2025-11-10 23:01:01 +01:00
README.md update gitlab refs, added badges 2026-02-02 10:51:40 +01:00

Domain Reporter (drep.sh)

gitlab github

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

  1. Make sure you have the required tools installed:

    sudo apt update
    sudo apt install -y curl jq openssl whois dnsutils
    
  2. Clone or copy the script to your local machine:

    git clone git@forgejo.parcifal.dev/drep.git
    cd drep
    
  3. 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.