Skip to content

Check the status of domains to see if they are expired and/or available for purchase

License

Notifications You must be signed in to change notification settings

ForSetGeorgia/Domain-Status-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Domain Status Checker

This program runs a whois command to check on the status of a domain(s). The result is then sent in an email.

Getting Started

  1. bundle install
  2. cp .env.example .env
  3. Fill in .env variables. Unless you set ENVIRONMENT to production, emails will be sent to mailcatcher and you can use any fake email addresses you want.

Environment Variables

  • ENVIRONMENT - set to production so email will actually be set
  • DOMAINS - comma separated list of domains to check. Example: 'forset.ge' or 'forset.ge, datafest.ge'
  • EMAIL_SUBJECT - the subject line for the email notification

Usage

  • rake domain_checker:run -> Run the scraper!
  • rake domain_checker:schedule:run_daily -> Schedule a cron job to run rake domain_cheker:run according to the confid/schedule.rb file.

How it Works

When you run the domain checker, the following happens:

  1. Each domain is checked using the command: whois domain | grep 'Domain Status'
  2. The output is recorded
  3. An notification of the output is emailed

About

Check the status of domains to see if they are expired and/or available for purchase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages