checkDomAvail



This simple routine checks domain availability from whois and notify it to a mail address using local or external smtp (with swaks).

The scope is to be immediately aware of the availability of a domain to avoid it to be stolen from web shark company.

prerequisites:

packages whois, swaks (if sending through external authenticated smtp)

configured mta if send locally with mail -s



INSTRUCTIONS:

- put the script in /usr/local/bin/

- it must be executable: chmod +x /usr/...

- schedule it: crontab -e and add the line

"01 */4 * * * /usr/local/bin/checkDomAvail.sh"

to check every 4 hours

- if you use local mta without auth, see instructions at the end of the script



Download