rdapper - a simple console-based RDAP client.
rdapper
rdapper OBJECT
rdapper is a simple RDAP client. It uses Net::RDAP to retrieve data about internet resources (domain names, IP addresses, and autonymous systems) and outputs the information in a human-readable format. If you want to consume this data in your own program you should use Net::RDAP directly.
rdapper was originally conceived as a full RDAP client (back when the RDAP protocol was still in draft form) but is now just a very thin front-end to Net::RDAP, and its main purpose is to allow testing of that library.
You can pass any internet resource as an argument; this may be:
a "forward" domain name such as example.com;
example.com
a "reverse" domain name such as 168.192.in-addr.arpa;
168.192.in-addr.arpa
a IPv4 or IPv6 address or CIDR prefix, such as 192.168.0.1 or 2001:DB8::/32;
192.168.0.1
2001:DB8::/32
an Autonymous System Number such as AS65536.
AS65536
the URL of an RDAP resource such as https://example.com/rdap/domain/example.com.
https://example.com/rdap/domain/example.com
the "tagged" handle of an entity, such as an LIR, registrar, or domain admin/tech contact. Because these handles are difficult to distinguish from domain names, you must use the --type argument to explicitly tell rdapper that you want to perform an entity query.
--type
--type=TYPE - explicitly set the object type. rdapper will guess the type by pattern matching the value of OBJECT but you can override this by explicitly setting the --type argument to one of : ip, autnum, domain, entity or url.
--type=TYPE
OBJECT
ip
autnum
domain
entity
url
If --type=url is used, rdapper will directly fetch the specified URL and attempt to process it as an RDAP response.
--type=url
If --type=entity is used, OBJECT must be a a string containing a "tagged" handle, such as ABC123-EXAMPLE, as per RFC 8521.
--type=entity
ABC123-EXAMPLE
--help - display help message.
--help
--debug - enable Net::RDAP debug mode.
--debug
--short - omit remarks, notices, and links. Implies --nopager.
--short
--nopager
--expand - attempt to "expand" truncated entity objects.
--expand
--bypass-cache - disable local cache of RDAP objects.
--bypass-cache
--auth=USER:PASS - HTTP Basic Authentication credentials to be used when accessing the specified resource.
--auth=USER:PASS
--nopager - by default, rdapper will pass its output to less(1). Setting --nopager disables this behaviour.
less(1)
--raw - output raw JSON response (implies --nopager).
--raw
rdapper uses the following modules, some of which may already be installed:
Getopt::Long
List::MoreUtils
Net::ASN
Net::DNS::Domain
Net::IP
Net::RDAP (obviously)
Term::ANSIColor
Text::Wrap
Copyright 2019 CentralNic Ltd. All rights reserved.
Copyright (c) 2018 CentralNic Ltd. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install rdapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm rdapper
CPAN shell
perl -MCPAN -e shell install rdapper
For more information on module installation, please visit the detailed CPAN module installation guide.