Skip to content

hiqdev/catcher

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Catcher

GitHub version Scrutinizer Code Coverage Scrutinizer Code Quality

Use

To start single catcher:

./bin/catcher config.json start

To start and keep running desired number of catchers use systemd or docker.

Here are recommended systemd configuration files.

Main Configuration File

{
    "mainRefreshPeriod": {"minutes": 1},
    "domainsCheckPeriod": {"minutes": 10},
    "domainsReloadPeriod": {"minutes": 3},

    "domainsFilePath": "etc/my-domains.json",

    "epp": {
        "host":         "epp.verisign-grs.com",
        "port":         700,
        "bind":         "1.2.3.4",
        "login":        "mylogin",
        "password":     "mypassword",
        "certfile":     "ssl/my.com.cert",
        "keyfile":      "ssl/my.com.key",
        "ca_certs":     "ssl/my.com.intermediate"
    }
}

Domains List File

{
    "facebook.com": {
        "since": "2018-08-01 01:01:01",
        "weight": 100
    },
    "google.com": {
        "since": "2018-08-01 15:03:01",
        "weight": 200
    },
    "yahoo.com": {
        "since": "3018-08-01 15:04:30",
        "weight": 900
    },
    "example.com": {
        "since": "2018-08-01 15:03:01",
        "weight": 200,
        "taken-by": "regid"
    }
}

How it works

  • Reads main configuration file
  • Reads domain list file (rereads periodically)
  • Established single EPP connection
  • Sends as many domain:register commands as possible
  • Periodically checks domains list to mark already registered domains
  • Exits after configured period of time (set it to maximum allowed time for EPP connection)

License

This project is released under the terms of the BSD-3-Clause license. Read more here.

Copyright © 2018, HiQDev (http://hiqdev.com/)

Releases

No releases published

Packages

No packages published

Languages