Code Monkey home page Code Monkey logo

rdap's Introduction

OpenRDAP is an command line RDAP client implementation in Go. Build Status

https://www.openrdap.org - homepage

https://www.openrdap.org/demo - live demo

Features

  • Command line RDAP client
  • Query types supported:
    • ip
    • domain
    • autnum
    • nameserver
    • entity
    • help
    • url
    • domain-search
    • domain-search-by-nameserver
    • domain-search-by-nameserver-ip
    • nameserver-search
    • nameserver-search-by-ip
    • entity-search
    • entity-search-by-handle
  • Query bootstrapping (automatic RDAP server URL detection for ip/domain/autnum/(experimental) entity queries)
  • Bootstrap cache (optional, uses ~/.openrdap by default)
  • X.509 client authentication
  • Output formats: text, JSON, WHOIS style
  • Experimental object tagging support

Installation

This program uses Go. The Go compiler is available from https://golang.org/.

To install:

go get -u github.com/openrdap/rdap/cmd/rdap

This will install the "rdap" binary in your $GOPATH/go/bin directory. Try running:

~/go/bin/rdap google.com

Usage

Query type Usage
Domain (.com) rdap -v example.com
Network rdap -v 2001:db8::
Autnum rdap -v AS15169
Nameserver rdap -v -t nameserver -s https://rdap.verisign.com/com/v1 ns1.google.com
Help rdap -v -t help -s https://rdap.verisign.com/com/v1
Domain Search rdap -v -t domain-search -s $SERVER_URL example*.gtld
Domain Search (by NS) rdap -v -t domain-search-by-nameserver -s $SERVER_URL ns1.example.gtld
Domain Search (by NS IP) rdap -v -t domain-search-by-nameserver-ip -s $SERVER_URL 192.0.2.0
Nameserver Search rdap -v -t nameserver-search -s $SERVER_URL ns1.example.gtld
Nameserver Search (by IP) rdap -v -t nameserver-search-by-ip -s $SERVER_URL 192.0.2.0
Entity Search rdap -v -t entity-search -s $SERVER_URL ENTITY-TAG
Entity Search (by handle) rdap -v -t entity-search-by-handle -s $SERVER_URL ENTITY-TAG

See https://www.openrdap.org/docs.

Go docs

godoc

Requires

Go 1.7+

Links

rdap's People

Contributors

adamdecaf avatar keperry avatar skip2 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

securityguy

rdap's Issues

Importing keperry/rdap breaks due to reference to openrdap/rdap/tests

Imports of openrdap/rdap/tests breaks code that is importing keperry/rdap:

go: finding module for package gopkg.in/jarcoal/httpmock.v1
ii2/whois imports
github.com/keperry/rdap tested by
github.com/keperry/rdap.test imports
github.com/openrdap/rdap/test imports
gopkg.in/jarcoal/httpmock.v1: no matching versions for query "latest"

-j/--json switch returns no json data

When using the -j/--json switch, no data is returned structured as json

user@host Desktop % ~/go/bin/rdap -v google.com -j    
# OpenRDAP v0.0.1
# 
# rdap: Configuring query...
# rdap: Using disk cache (/Users/a206709233/.openrdap)
# rdap: Bootstrap URL is default 'https://data.iana.org/rdap/'
# rdap: Bootstrap cache TTL set to 3600 seconds
# rdap: Timeout is 30 seconds
# 
# client: Running...
# client: Request type  : domain
# client: Request query : google.com
# client: Request URL   : TBD, bootstrap required
#   bootstrap: Looking up...
#   bootstrap: Question type : dns
#   bootstrap: Question query: google.com
#   bootstrap: Cache state: dns.json: good
#   bootstrap: Using cached Service Registry file
#   bootstrap: Looked up 'google.com'
#   bootstrap: Matching entry 'com'
#   bootstrap: Service URL #1: 'https://rdap.verisign.com/com/v1/'
# client: RDAP URL #0 is https://rdap.verisign.com/com/v1/domain/google.com
# client: GET https://rdap.verisign.com/com/v1/domain/google.com
# client: status-code=200, content-type=application/rdap+json, length=2429 bytes, duration=353.50978ms
# client: Successfully decoded response
# 
# rdap: Finished in 360.84536ms

Cloned issue from openrdap#20

Failed to install

$go get -u github.com/keperry/rdap/cmd/rdap
go: downloading github.com/keperry/rdap v0.9.0
go: gopkg.in/alecthomas/[email protected]: parsing go.mod:
	module declares its path as: github.com/alecthomas/kingpin/v2
	        but was required as: gopkg.in/alecthomas/kingpin.v2

Building locally with go build also returns no executable file.

$go version
go version go1.19.6 linux/amd64

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.