Net::RD...Network(3)
πΈ NAME πΈ
Net::RDAP::Object::IPNetwork β it's a whole module that represents an IPv4 or IPv6 address network, bestie π
β¨ DESCRIPTION β¨
okay so Net::RDAP::Object::IPNetwork represents a block of IP addresses (IPv4 or IPv6) allocated by an RIR. that's the whole vibe. a lil bundle of addresses with paperwork.
and the way that Net::RDAP::Object::IPNetwork inherits from Net::RDAP::Object means it has access to all that module's methods too. nepotism but make it inheritance, we love to see it π
Other methods include:
$start = $network->start;β hands you aNet::IPobject representing the starting IP address of the network. the beginning, the origin story, the pilot episode π¬$end = $network->end;β hands you aNet::IPobject representing the ending IP address of the network. the finale. the last episode. no season 2 π$version = $network->version;β returns a string signifying the IP protocol version of the network, either"v4"or"v6". that's it, that's the whole answer, it's giving multiple choice π¦$name = $network->name;β returns a string containing the identifier assigned to the network registration by the registration holder. like the name on the little name tag at the party π$type = $network->type;β returns a string containing an RIR-specific classification of the network. every RIR does its own lil categorization thing, iykyk π$country = $network->country;β returns a string containing the two-character country code of the network. two chars, one country, iconic π¬π§β¨$parentHandle = $network->parentHandle;β returns a string containing an RIR-unique identifier of the parent network of this network registration. yes bestie, the network has a parent, it's a family tree situation π«Ά$range = $network->range;β returns aNet::IPobject representing the range of addresses between the start and end addresses. everything in the middle, the whole middle-of-the-movie montage π@cidrs = $network->cidrs;β returns an array ofNet::IPobjects representing the CIDR prefix(es) for this network registration (see <https://bitbucket.org/nroecg/nro-rdap-cidr/src/master/nro-rdap-cidr.txt>). not one object β an array, plural, the whole squad π₯$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.
β οΈ okay important lil note bestie: you will need to fetch the object representing this domain yourself, okay? she does not do it for you. do not expect her to. look:
$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
see? you build the URL, then you go fetch it. two-step. a little choreography. a lil dance π no cap.
π COPYRIGHT π
Copyright 2018-2023 CentralNic Ltd, 2024-2026 Gavin Brown. For licensing information, please see the "LICENSE" file in the Net::RDAP distribution.
and that's the whole page, bestie!! πΈ this was Net::RD...Network(3) from perl v5.42.2, dated 2026-06-17, served up fresh from your friendly neighbourhood User Contributed Perl Documentation. mwah, go read the LICENSE file, ily π«Άπβ¨
π¦ where this page comes from
- fedora 44: perl-Net-RDAP 0.43-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms