A simple and Cross-Platform script to check a list of domains for availability.
You need Powershell 7 to be installed on your system. You can get it for your platform from here Install PowerShell on Windows, Linux, and macOS.
Also for linux based systems, you need dig
from bind-utils
package.
Either run the script and it will promp you for input or provide parameters via CLI.
By default, the script will look for domains.txt
in the current directory. You can provide custom path via -File
parameter in CLI.
To run the script, open Powershell 7 in the script directory and run .\Check-Domains.ps1
For full documentaion run Get-Help .\Check-Domains.ps1
You can also provide inputs via CLI.
.\Check-Domains.ps1 -Mode TCP -Port 80 -Timeout 5 -Concurrency 20
.\Check-Domains.ps1 -Mode DNS -DNSServer 1.1.1.1 -Concurrency 10 -File domains.txt
.\Check-Domains.ps1 -Mode DOH -DOHServer Cloudflare -Concurrency 10
.\Check-Domains.ps1 -Mode ICMP -Timeout 10 -Concurrency 5 -File "path\to\domains.txt"