/go/checkdomain takes a keyword and finds a domain name for it that is not registered yet. It asks the whois service about the keyword with seven endings, one after another, and stops at the first one that looks free. The endings are checked in this order: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
/go/checkdomain mybrand
mybrand.net
In this example mybrand.com is taken and mybrand.net is free.
Options
None. The command takes one argument, and the list of endings cannot be changed.
If you type a full domain name, everything from the first dot is removed and the rest is used as the keyword. mybrand.net is checked as mybrand, and the ending you typed is ignored. The check always starts with .com.
Examples
# Find a name for a keyword
/go/checkdomain mybrand
# Use the result in a script
Domain=$(/go/checkdomain mybrand)
if [ -z "$Domain" ]; then
echo "No domain found"
else
echo "Available: $Domain"
fi
# Check one specific domain yourself
whois mybrand.com
Output
| Result | Meaning |
|---|---|
mybrand.net |
The first domain in the list that looks available. |
| (nothing) | All seven were reported as taken, or the lookups failed. |
The command does not print an error and does not say how many names it checked. Each run also adds a line to /var/log/go/checkdomain.log.
The exit status is 1 when a domain is found and 0 when none is found, which is the reverse of the usual meaning. Use the printed output, not the status.
See the full reference at /go/checkdomain and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
