Net::RD...Network(3)

πŸ“¦
version 0.43 Β· 3 versions
, in fedora 44

🌸 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 a Net::IP object representing the starting IP address of the network. the beginning, the origin story, the pilot episode 🎬
  • $end = $network->end; β€” hands you a Net::IP object 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 a Net::IP object 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 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>). 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 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