App-rdapper
view release on metacpan or search on metacpan
lib/App/rdapper.pm view on Meta::CPAN
rdapper --search "exampl*.com"
=head1 DESCRIPTION
C<rdapper> retrieves data about internet resources (domain names, IP addresses,
and autonymous systems) and outputs the information in a human-readable format.
=head1 OPTIONS
You can pass any internet resource as an argument; this may be:
=over
=item * a "forward" domain name such as C<example.com>;
=item * a top-level domain such as C<com>;
=item * a IPv4 or IPv6 address or CIDR prefix, such as C<192.168.0.1> or
C<2001:DB8::/32>;
=item * an Autonymous System Number such as C<AS65536>.
=item * a "reverse" domain name such as C<168.192.in-addr.arpa>;
=item * the URL of an RDAP resource such as
C<https://example.com/rdap/domain/example.com>.
=item * 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 C<--type> argument to explicitly tell
C<rdapper> that you want to perform an entity query, .e.g C<rdapper
--type=entity ABC123-EXAMPLE>.
=back
C<rdapper> also implements limited support for in-bailiwick nameservers, but
you must use the C<--nameserver> argument to disambiguate from domain names.
The RDAP server of the parent domain's registry will be queried.
=head2 ARGUMENTS
=over
=item * C<--registry> - display the registry record only. This was the default
behaviour prior to v1.12.
=item * C<--registrar> - follow referral to the registrar's RDAP record (if
any) which will be displayed instead of the registry record. If no registrar
link can be found, the registry record will be displayed. This option cannot be
used with C<--registry>. As of v1.12, this is the default behaviour.
=item * C<--both> - display both the registry and (if any) registrar RDAP
records.
=item * C<--reverse> - if you provide an IP address or CIDR prefix, then this
option causes C<rdapper> to display the record of the corresponding
C<in-addr.arpa> or C<ip6.arpa> domain.
=item * C<--type=TYPE> - explicitly set the object type. C<rdapper> will
guess the type by pattern matching the value of C<OBJECT> but you can override
this by explicitly setting the C<--type> argument to one of : C<ip>,
C<autnum>, C<domain>, C<nameserver>, C<entity> or C<url>.
=over
=item * If C<--type=url> is used, C<rdapper> will directly fetch the
specified URL and attempt to process it as an RDAP response. If the URL path
ends with C</help> then the response will be treated as a "help" query response
(if you want to see the record for the .help TLD, use C<--type=tld help>).
=item * If C<--type=entity> is used, C<OBJECT> must be a a string containing
a "tagged" handle, such as C<ABC123-EXAMPLE>, as per L<RFC
8521|https://datatracker.ietf.org/doc/html/rfc8521>.
=back
=item * C<--$TYPE> - alias for C<--type=$TYPE>. eg C<--domain>,
C<--autnum>, etc.
=item * C<--search> - perform a search.
=item * C<--help> - display help message.
=item * C<--version> - display package and version.
=item * C<--raw> - print the raw JSON rather than parsing it.
=item * C<--short> - omit remarks, notices, links and redactions.
=item * C<--bypass-cache> - disable local cache of RDAP objects.
=item * C<--auth=USER:PASS> - HTTP Basic Authentication credentials to be used
when accessing the specified resource. This option B<SHOULD NOT> be used unless
you explicitly specify a URL, otherwise your credentials may be sent to servers
you aren't expecting them to.
=item * C<--nocolor> - disable ANSI colors in the formatted output.
=item * C<--debug> -run in debugging mode.
=back
=head1 RDAP Search
Some RDAP servers support the ability to perform simple substring searches. You
can use the C<--search> option to enable this functionality.
When the C<--search> option is used, C<OBJECT> will be used as a search term.
If it contains no dots (e.g. C<exampl*>), then C<rdapper> will send a search
query for C<exampl*> to I<all> known RDAP servers. If it contains one or more
dots (e.g. C<exampl*.com>), it will send the search query to the RDAP server
for the specified TLD (if any).
Any errors observed will be printed to C<STDERR>; any search results will be
printed to C<STDOUT>.
As of writing, search is only available for domain names.
=head1 INTERNATIONALIZATION & LOCALIZATION
( run in 1.825 second using v1.01-cache-2.11-cpan-39bf76dae61 )