Skip to content

hstern/dwhois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dwhois

Client and worker for a database of WHOIS records accessed via HTTP. Has an optional MongoDB-backed result cache.

Configuration

Create /etc/dwhois.conf or ~/.dwhois.conf. Set whatever options you need to from:

[dwhois]
user=your username
password=your password
average_time=time per domain in seconds
url=https://path/to/api/version/

[cache]
use_cache=True
url=mongodb://url_to_mongodb/ (optional, defaults to localhost)
db=dwhois
collection=dwhois

Querying

usage: dwhois [-h] [--json] [--files [FILES [FILES ...]]] [--check] [--submit]
              [domains [domains ...]]

positional arguments:
  domains               list of domains

optional arguments:
  -h, --help            show this help message and exit
  --json, -j            json output
  --files [FILES [FILES ...]], -f [FILES [FILES ...]]
                        file with domains
  --check, -c           check instead of get
  --submit, -s          submit domains

User Account Info

usage: dwhois-user [-h] user

positional arguments:
  user        user to query

optional arguments:
  -h, --help  show this help message and exit

Worker Process

Run dwhois-worker in screen or with runit. Init scripts to come in a later release.

About

Distributed WHOIS Client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages