NAME
Net::RDAP::Object::IPNetwork - a module representing an IPv4 or IPv6 address network.
DESCRIPTION
Net::RDAP::Object::IPNetwork represents a block of IP addresses (IPv4 or IPv6) allocated by an RIR.
Net::RDAP::Object::IPNetwork inherits from Net::RDAP::Object so has access to all that module's methods.
Other methods include:
$start = $network->start;
Returns a Net::IP object representing the starting IP address of the network.
$end = $network->end;
Returns a Net::IP object representing the ending IP address of the network.
$version = $network->version;
Returns a string signifying the IP protocol version of the network, either "v4" or "v6".
$name = $network->name;
Returns a string containing the identifier assigned to the network registration by the registration holder.
$type = $network->type;
Returns a string containing an RIR-specific classification of the network.
$country = $network->country;
Returns a string containing the two-character country code of the network.
$parentHandle = $network->parentHandle;
Returns a string containing an RIR-unique identifier of the parent network of this network registration.
$range = $network->range;
Returns a Net::IP object representing the range of addresses between the start and end addresses.
@cidrs = $network->cidrs;
Returns an array of Net::IP objects representing the CIDR prefix(es) for this network registration (see https://bitbucket.org/nroecg/nro-rdap-cidr/src/master/nro-rdap-cidr.txt).
$url = $network->domain;
Returns a URI object representing the RDAP URL of the "reverse" domain object corresponding to this network. For example, if the IP network is 192.168.0.0/24
, then the corresponding reverse domain is 168.192.in-addr.arpa
. The URL is constructed using the base URL of the RDAP service for the IP network.
You will need to fetch the object representing this domain yourself, for example:
$ip = $rdap->ip(Net::IP->new('192.168.0.0/24'));
# $ip is a Net::RDAP::IPNetwork
$url = $ip->domain;
# $url is a URI
$domain = $rdap->fetch($url);
# domain is a Net::RDAP::Domain for 168.192.in-addr.arpa
COPYRIGHT
Copyright 2018-2023 CentralNic Ltd, 2024 Gavin Brown. For licensing information, please see the LICENSE
file in the Net::RDAP distribution.