NAME

Net::RDAP::Registry - an interface to the IANA RDAP registries.

SYNOPSIS

use Net::RDAP::Registry;
use Net::IP;
use Net::ASN;

$url = Net::RDAP::Registry->get_url(Net::DNS::Domain->new('example.com'));
$url = Net::RDAP::Registry->get_url(Net::IP->new('192.168.0.1'));
$url = Net::RDAP::Registry->get_url(Net::IP->new('2001:DB8::/32'));
$url = Net::RDAP::Registry->get_url(Net::ASN->new(65536));

DESCRIPTION

RFC 7484 describes how RDAP clients can find the authoritative RDAP service for a given internet resource using one of several IANA registries.

This module provides an interface to these registries, and will return a URI object corresponding to the URL for a resource obtained from them.

Net::RDAP::Registry downloads the registry files from the IANA website and will maintain up-to-date copies of those files locally.

METHODS

$url = Net::RDAP::Registry->get_url($resource);

This method returns a URI object corresponding to the authoritative RDAP URL for the given resource. $resource may be one of the following:

  • a Net::IP object representing an IPv4 or IPv6 address or address range;

  • a Net::ASN object representing an Autonymous System;

  • a Net::DNS::Domain object representing a domain name.

This method requires objects to be passed to ensure that the resource identifiers have been properly validated.

If no URL can be found in the IANA registry, then undef is returned.

COPYRIGHT

Copyright 2018 CentralNic Ltd. All rights reserved.

LICENSE

Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.