Skip to content

Repository files navigation

Domain Scout CLI

CI Tasks for domain-scout Go Report Card PkgGoDev

This is a command-line tool for scanning domains and subdomains. It uses the domain-scout library to check if subdomains are available.

Usage

  1. Clone or download this repository:
git clone https://github.com/emmanuelgautier/domain-scout.git
cd domain-scout
  1. Build the CLI tool:
go build -o domain-scout
  1. Run the CLI tool with the --help flag to see the available commands:
./domain-scout --help

You 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.
  1. Run the domain-scout subcommand:
echo "example.com subdomain1.example.com subdomain2.example.com" | ./domain-scout subdomain-available

You can also read a list of domains from a file:

cat domains.txt | ./domain-scout subdomain-available

The 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 │           │                                     │                               │
└────────────────────────┴───────────┴─────────────────────────────────────┴───────────────────────────────┘

License

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!

Author

Emmanuel Gautier

About

This is a command-line tool for scanning domains and subdomains if those are available.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages