GithubHelp home page GithubHelp logo

dammer / domain-check-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nixcraft/domain-check-2

0.0 1.0 0.0 53 KB

Domain Expiration Check Shell Script Forked and Maintained by nixCraft

Home Page: https://www.cyberciti.biz/tips/domain-check-script.html

License: Other

Shell 100.00%

domain-check-2's Introduction

Domain Expiration Check Shell Script

A simple shell script to display or notify the user via email about domain status and expiry date.

Installation:

Use the curl or wget command to grab script as follows:

$ wget https://raw.githubusercontent.com/nixcraft/domain-check-2/master/domain-check-2.sh
## [ sample domain list for testing purpose ] ##
$ wget https://raw.githubusercontent.com/nixcraft/domain-check-2/master/domain-list.txt 
## [ install it in /usr/local/bin dir ] ##
$ sudo cp -vf domain-check-2.sh /usr/local/bin/domain-check-2
$ sudo chmod +x /usr/local/bin/domain-check-2.sh

Usage:

Run it as follows:

$ domain-check-2 -d google.com
$ domain-check-2 -d cyberciti.biz
$ domain-check-2 -f domain-list.txt 

Sample outputs:

Domain                              Registrar                                      Status   Expires     Days Left
----------------------------------- ---------------------------------------------- -------- ----------- ---------
nixcraft.com                        GoDaddy.com, LLC                               Valid    10-may-2023   2022 
google.org                          MarkMonitor Inc.                               Valid    20-oct-2018   359  
google.net                          MarkMonitor Inc.                               Valid    15-mar-2018   140  
google.info                         MarkMonitor Inc.                               Valid    31-jul-2018   278  
cyberciti.biz                       GoDaddy.com, Inc.                              Valid    30-jun-2024   2439 
google.in                           MarkMonitor Inc. (R84-AFIN)                    Valid    14-Feb-2018   111  
google.co.in                        MarkMonitor Inc. (R84-AFIN)                    Valid    23-Jun-2018   240  
google.us                           MarkMonitor, Inc.                              Valid    18-apr-2018   174  
google.uk                           Markmonitor Inc.                               Valid    11-Jun-2018   228  
google.co.uk                        Markmonitor Inc.                               Valid    14-Feb-2018   111  
google.jp                           Google                                         Valid    31-may-2018   217  

google.cz                           REG-MARKMONITOR                                Valid    22-jul-2018   269  
google.pl                           Markmonitor, Inc.                              Valid    18-sep-2018   327  
google.co                           MARKMONITOR, INC.                              Valid    24-Feb-2018   121  
google.ru                           RU-CENTER-RU                                   Valid    04-mar-2018   129  
google.blog                         MarkMonitor Inc                                Valid    19-aug-2018   297  
linux.cafe                          OVH SAS                                        Valid    14-nov-2018   384  
google.md                           Google Inc.                                    Valid    02-may-2018   188  
google.co                           MARKMONITOR, INC.                              Valid    24-Feb-2018   121  
dotmobi.mobi                        CSC Corporate Dom                              Valid    11-may-2018   197  
google.me                           MarkMonitor Inc.                               Valid    13-jun-2018   230  
google.us                           MarkMonitor, Inc.                              Valid    18-apr-2018   174  
google.su                           RUCENTER-SU                                    Valid    15-oct-2018   354  
youtube.tv                          MARKMONITOR INC.                               Valid    14-aug-2018   292  
abc.xyz                             MarkMonitor, Inc (TLDs)                        Valid    20-mar-2025   2702 
google.se                           MarkMonitor Inc                                Valid    20-oct-2018   359  
google.dk                           DK Hostmaster A/S                              Valid    31-mar-2018   156

Setup Unix/Linux cron job as follows to get email notification to send expiration notices:

@daily /path/to/domain-check-2.sh -f /path/to/your-domains.txt -e [email protected]

Getting help

$ domain-check-2.sh -h
Usage: domain-check-2.sh [ -e email ] [ -x expir_days ] [ -q ] [ -a ] [ -h ]
          {[ -d domain_namee ]} || { -f domainfile}

  -a               : Send a warning message through email 
  -d domain        : Domain to analyze (interactive mode)
  -e email address : Email address to send expiration notices
  -f domain file   : File with a list of domains
  -h               : Print this screen
  -s whois server  : Whois sever to query for information
  -q               : Don't print anything on the console
  -x days          : Domain expiration interval (eg. if domain_date < days)

Authors:

domain-check-2's People

Contributors

blink69 avatar dammer avatar eaydin avatar kode29 avatar minitram avatar nixcraft avatar sadeqn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.