Skip to content

Instantly share code, notes, and snippets.

@akatch
Created August 2, 2017 04:42
Show Gist options
  • Save akatch/b336d90fdb857e0c5c70df6a2f78ca01 to your computer and use it in GitHub Desktop.
Save akatch/b336d90fdb857e0c5c70df6a2f78ca01 to your computer and use it in GitHub Desktop.
>>> bundle exec bin/check-whois-domain-expiration.rb --domain google.com --warn 30 --critical 4
WhoisDomainExpirationCheck OK: google.com expires on 09-13-2020 (1138 days away)
>>> bundle exec bin/check-whois-domain-expiration.rb --domain duckduckgo.com
WhoisDomainExpirationCheck OK: duckduckgo.com expires on 06-23-2019 (689 days away)
>>> bundle exec bin/check-whois-domain-expiration-multi.rb --domains example.com,wisc.edu
WhoisDomainExpirationCheck OK: No domains expire in the near term
>>> bundle exec bin/check-whois-domain-expiration-multi.rb --domains google.com,duckduckgo.com --warn 30 --critical 5
WhoisDomainExpirationCheck OK: No domains expire in the near term
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment