Coder Social home page Coder Social logo

gadiguibou / rdapcheck Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 0.0 35 KB

A simple RDAP library and command-line tool to check domain name availability in bulk. https://deno.land/x/rdapcheck

License: GNU Affero General Public License v3.0

TypeScript 100.00%
domain-names domain domains domain-discovery domain-name domain-name-search typescript deno denoland

rdapcheck's Introduction

rdapcheck

A simple library and command-line tool to check domain name availability in bulk using the RDAP protocol, a simple protocol meant to replace WHOIS.

This module is also available on deno.land/x.

Usage screenshot

Installation

Using Deno

Run once using:

deno run --allow-net https://deno.land/x/rdapcheck/cmd.ts

Compile the client into a portable executable using:

deno compile -o rdapcheck --allow-net https://deno.land/x/rdapcheck/cmd.ts

Install the client using:

deno install -n rdapcheck --allow-net https://deno.land/x/rdapcheck/cmd.ts

Manually

Binary executables are available for the latest release.

Usage

rdapcheck [OPTIONS] DOMAINS...

The available options are:

  • -q or --quiet: Only print the names of the domains that are available
  • -p or --progress: Print the number of domains processed so far
  • -c or --chunk-size: The number of domains to process in parallel. Set to 10 by default

DOMAIN can be a domain name or a pattern with wildcards that rdapcheck will fill in with every possible value.

The available wildcards are:

  • *: Matches any letter, number or hyphen, "-"
  • ?: Matches any letter
  • #: Matches any number

Examples

Check the availability of a single domain

$ rdapcheck johndoe.xyz
johndoe.xyz is not available

Check the availability of multiple domains with a single command

$ rdapcheck aaa.net bbb.org asldkfjal.com johndoe.xyz
aaa.net is not available
bbb.org is not available
asldkfjal.com is available
johndoe.xyz is not available

Only print the names of the domains that are available

$ rdapcheck -q aaa.net bbb.org asldkfjal.com johndoe.xyz
asldkfjal.com

Check the availability of all domains that match a list of patterns

$ rdapcheck -q 'ex?mple.com' 'johndoe#.net'
exbmple.com
excmple.com
exdmple.com
exfmple.com
...
exrmple.com
extmple.com
exumple.com
johndoe0.com
johndoe1.com
...
johndoe5.com
johndoe6.com
johndoe8.com
johndoe9.com

Sources

This tool was completed over the course of one afternoon by referring to the following sources:

For more information on the latest standardization efforts on RDAP, see the RFC Editor's RDAP page.

rdapcheck's People

Contributors

gadiguibou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rdapcheck's Issues

installs as "cmd" not good

When I install the binary it installs it as "cmd"

i think you need to do something to get it to install as rdapcheck instead.

Generated domains don't comply with RFC

Hi, your project is very helpful, but I still want to point out a few flaws:

  1. Refer to the RFC 3696, If the hyphen is used, it is not permitted to appear at either the beginning or end of a label.
  2. Although the program runs very fast, it often considers registered domains to be available, I'm not sure if this is a programming problem or the rdap data. As an example: check ??.tv

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.