Giter Club home page Giter Club logo

cronwhois's Introduction

Serverless cronWhois

A lambda function that runs at a set rate to check whois registration status for a specified list of domains. It then sends a notification via SNS in the event a domain is unregistered. This can be used to monitor the availability of a parked domain.

How It Works

The idea being that if the current domain owner fails to renew the registration, a whois lookup will no longer return a complete result. This function checks for the presence of the 'domainName' or 'domain' property on the result set. If both of those are missing it assumes the domain is not registered and proceeds to send a notification via SNS.

Configuration

In the serverless.yml file, locate the custom.domains section. This will contain a space-separated list of domains within double quotes. Simply edit this for the list of domains you wish to monitor.

eg:

custom:
  # Space separated list of domains to check
  domains: "example.com cocacola.com doesnotexist31415926.com"

Deploying

Deploy the function to AWS using serverless deploy. During the deploy process the SNS topic cronWhoisTopic-${stage} will be created. Afterwards you will need to subscribe to this topic with your preferred protocol.

eg:

serverless deploy -s dev -v

Credits

This function uses the whois-json NPM module.

cronwhois's People

Contributors

kyle138 avatar

Watchers

James Cloos avatar  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.