This is a command-line tool for scanning domains and subdomains. It uses the domain-scout library to check if subdomains are available.
- Clone or download this repository:
git clone https://github.com/emmanuelgautier/domain-scout.git
cd domain-scout- Build the CLI tool:
go build -o domain-scout- Run the CLI tool with the
--helpflag to see the available commands:
./domain-scout --helpYou should see output similar to the following:
Scan domains and subdomains
Usage:
domain-scout [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
subdomain-available Check if subdomains are available
Flags:
-h, --help help for domain-scout
Use "domain-scout [command] --help" for more information about a command.
- Run the
domain-scoutsubcommand:
echo "example.com subdomain1.example.com subdomain2.example.com" | ./domain-scout subdomain-availableYou can also read a list of domains from a file:
cat domains.txt | ./domain-scout subdomain-availableThe output should be similar to the following:
┌────────────────────────┬───────────┬─────────────────────────────────────┬───────────────────────────────┐
│ DOMAIN │ AVAILABLE │ RECORDS │ HTTP RESPONSE │
├────────────────────────┼───────────┼─────────────────────────────────────┼───────────────────────────────┤
│ example.com │ No │ (AAAA) 2600:1406:bc00:53::b81e:94ce │ HTTP/2.0 example.com: 200 OK │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (AAAA) 2600:1406:bc00:53::b81e:94c8 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (AAAA) 2600:1406:5e00:6::17ce:bc1b │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (AAAA) 2600:1408:ec00:36::1736:7f24 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (AAAA) 2600:1406:5e00:6::17ce:bc12 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (AAAA) 2600:1408:ec00:36::1736:7f31 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (A) 23.220.75.232 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (A) 23.215.0.136 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (A) 23.192.228.80 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (A) 23.192.228.84 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (A) 23.215.0.138 │ │
│ │ ├─────────────────────────────────────┤ │
│ │ │ (A) 23.220.75.245 │ │
├────────────────────────┼───────────┼─────────────────────────────────────┼───────────────────────────────┤
│ subdomain1.example.com │ Yes │ │ │
├────────────────────────┤ ├─────────────────────────────────────┼───────────────────────────────┤
│ subdomain2.example.com │ │ │ │
└────────────────────────┴───────────┴─────────────────────────────────────┴───────────────────────────────┘
This Domain Scout CLI is open-source and available under the MIT License. Feel free to use it as a starting point for your own CLI applications. Contributions and improvements are welcome!