Check domain availability on CLI using AWS Route53
Prerequisites
- Active AWS access keys - access key ID and secret access key
Configure AWS CLI
Use command aws configure
aws configure
AWS Access Key ID [MPLE]:
AWS Secret Access Key [MPLE]:
Default region name [us-east-1]:
Default output format [None]:
Check domains using route53domains
command
aws route53domains check-domain-availability --output=text --domain-name
Example
aws route53domains check-domain-availability --output=text --domain-name some.com
UNAVAILABLE
Example
aws route53domains check-domain-availability --output=text --domain-name random12345.com
AVAILABLE
Create an alias to find domains quickly
Create an alias to map to the command seen above.
alias domain=’aws route53domains check-domain-availability --output=text --domain-name’
Use the alias instead of typing the whole command in the future.
domain some.com
UNAVAILABLE
Similarly, you can create a shell function or script, or macro to run the entire command efficiently.