Socket
Socket
Sign inDemoInstall

github.com/openrdap/rdap

Package Overview
Dependencies
7
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/openrdap/rdap

Package rdap implements a client for the Registration Data Access Protocol (RDAP). RDAP is a modern replacement for the text-based WHOIS (port 43) protocol. It provides registration data for domain names/IP addresses/AS numbers, and more, in a structured format. This client executes RDAP queries and returns the responses as Go values. Quick usage: The QueryDomain(), QueryAutnum(), and QueryIP() methods all provide full contact information, and timeout after 30s. Normal usage: As of June 2017, all five number registries (AFRINIC, ARIN, APNIC, LANIC, RIPE) run RDAP servers. A small number of TLDs (top level domains) support RDAP so far, listed on https://data.iana.org/rdap/dns.json. The RDAP protocol uses HTTP, with responses in a JSON format. A bootstrapping mechanism (http://data.iana.org/rdap/) is used to determine the server to query.


Version published

Readme

Source

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 install github.com/openrdap/rdap/cmd/rdap@master

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

~/go/bin/rdap google.com

Usage

Query typeUsage
Domain (.com)rdap -v example.com
Networkrdap -v 2001:db8::
Autnumrdap -v AS15169
Nameserverrdap -v -t nameserver -s https://rdap.verisign.com/com/v1 ns1.google.com
Helprdap -v -t help -s https://rdap.verisign.com/com/v1
Domain Searchrdap -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 Searchrdap -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 Searchrdap -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

Uses

Go 1.20+

FAQs

Last updated on 15 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc