NAME

no_rdap.pl

DESCRIPTION

Default behaviour: Uses NOLookup::RDAP::RDAPLookup to perform RDAP lookup on domain related queries and fetch and print the matching information in a textual format inspired by rdapper.

With the -w option: Uses NOLookup::RDAP::RDAPLookup::Whois to perform RDAP lookup on domain related queries and fetch and print the matching information in Norid old school whois format (rdap2whois behaviour).

USAGE

perl no_rdap.pl -q <query>

Examples:

no_rdap.pl -q norid.no
no_rdap.pl -q nn.uninett.no -n
no_rdap.pl -q 985821585

no_rdap.pl -q UH9R-NORID
no_rdap.pl -q NN14H-NORID
no_rdap.pl -q REG2-NORID -w

Mandatory arguments:

 -q: query, one of:
     - domain name 
     - nameserver name (when -n is also set)
     - handle, if query matches a handle (P/O/R/H/REG (D not
       supported, use domain name))
     - identity: if query is a holder identity [ 985821585 | N.PRI.xxx ], a search is
       performed to find matching domains
       (other legacy identities like N.{ORG|LEG}.xxxx are not supported).
     - identity: if query is a O/P holder handle, a search is
       performed to find matching domains
       if -e is set, the handle object is looked up instead
     
Optional arguments:

 -n: query is a nameserver name
 -s: The full http(s)-address (URL) of the RDAP service (default is
     https://rdap.test.norid.no)
 -c: Do a HEAD instead of the default GET. HEAD returns no data, and
     can be used to check existence of domain etc.
 -z: Secret to access layer with higher amount of visible data
     (default is basic layer)
 -p: Act as a Norid proxy (for Norid use only)
 -i: the ip address of the client UA for proper referral rate
     limiting (default is none)
 -e: lookup entity instead of doing a search
 -s: present short result ( only when -w not set)
 -x: expand result, do additinal lookups if data is truncated
 -f: force ipv4 (-f 4) or ipv6 (-f 6) connection, else use what your system picks
     Note: option added to force mode if you experience DNS/connect problems

Format for output of the result:

 -w: dump result in old style Norid whois format (default is a
     rudimentary output inspired by rdapper)

 Other:
 -d: debug: 1: Simple debug, 5: activate also ua debug in http lookup
     libraries.
     Note: debug is disabled in RDAPLookup.pm, so uncomment
     commented debug code lines to activate for debug option,
     you will need LWP::ConsoleLogger::Easy to debug.
 -u: activate Net::RDAP library caching
 -v: verbose: dump JSON result received from RDAP
 -h: help