If you’ve ever tried to come up with a catchy domain name, you know how annoying it can be to keep checking to see if a certain name is available. Fortunately, on Linux we can make the task a little easier on us by using the
whois command. When a domain is available, the output from whois will let us know that it’s not able to find any information for that domain.
It’s easy enough then to put this functionality into a Bash script, which helps to automate checking lots of different TLDs (Top Level Domains, like .com, .net, .org, etc).
In this guide, we’ll show how to check domain name availability from the command line on Linux. Then, we’ll give you a simple Bash script that you can copy onto your own system and check for lots of domains at once. Read on to learn how.
In this tutorial you will learn:
- How to install whois on major Linux distros
- How to check for domain name availability with whois command
- Bash script for checking domain name availability