Categorygithub.com/openrdap/rdap
modulepackage
0.9.1
Repository: https://github.com/openrdap/rdap.git
Documentation: pkg.go.dev

# README

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+

Links

# Packages

Package bootstrap implements an RDAP bootstrap client.
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewAutnumRequest creates a new Request for the AS number |asn|.
NewAutoRequest creates a Request by guessing the type required for |queryText|.
NewDecoder creates a new Decoder to decode the RDAP response |jsonBlob|.
NewDomainRequest creates a new Request for the domain name |domain|.
NewEntityRequest creates a new Request for the entity name |entity|.
NewHelpRequest creates a new help Request.
NewIPNetRequest creates a new Request for the IP network |net|.
NewIPRequest creates a new Request for the IP address |ip|.
NewNameserverRequest creates a new Request for the nameserver |nameserver|.
NewRawRequest creates a Request from the URL |rdapURL|.
NewRequest creates a new Request with type |requestType| and |query| text.
NewVCard creates a VCard from jsonBlob.
RunCLI runs the OpenRDAP command line client.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RawRequest is a request with a fixed RDAP URL.
No description provided by the author
No description provided by the author

# Structs

Autnum represents information of Autonomous System registrations.
Client implements an RDAP client.
No description provided by the author
CLIOptions specifies options for the command line client.
Common contains fields which may appear anywhere in an RDAP response.
DecodeData stores a snapshot of all fields in an RDAP object (in raw interface{} form), at the time of decoding.
Decoder decodes an RDAP response (https://tools.ietf.org/html/rfc7483) into a Go value.
DecoderError represents a fatal error encountered while decoding.
Domain represents information about a DNS name and point of delegation.
DomainSearchResults represents a domain search response.
DSData is a subfield of Domain.
Entity represents information of an organisation or person.
EntitySearchResults represents an entity search response.
Error represents an error response.
Event represents some event which has occured/may occur in the future.
Help represents a help response.
No description provided by the author
IPAddressSet is a subfield of Nameserver.
IPNetwork represents information of an IP Network.
No description provided by the author
Link signifies a link another resource on the Internet.
Nameserver represents information of a DNS nameserver.
NameserverSearchResults represents a nameserver search response.
Notice contains information about the entire RDAP response.
Printer formats RDAP response objects as human readable text, and writes them to an io.Writer.
PublicID maps a public identifier to an object class.
Remark contains information about the containing RDAP object.
A Request represents an RDAP request.
No description provided by the author
SecureDNS is ia subfield of Domain.
Variant is a subfield of Domain.
VariantName is a subfield of Variant.
VCard represents a vCard.
VCardProperty represents a single vCard property.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
DecoderOption sets a Decoder option.
A RequestType specifies an RDAP request type.