Zonemaster::Util(3pm)
π Zonemaster::Util π
okay bestie, welcome to Zonemaster::Util β the lil utility drawer for all the other Zonemaster modules π
it's a Perl module, documented in the user-contributed Perl docs, and it's basically the friend that hands everyone else their stuff. no cap.
β¨ SYNOPSIS β¨
use Zonemaster::Util;
info(TAG => { some => 'argument'});
my $ns = ns($name, $address);
my $name = name('whatever.example.org');
look at that. three lines, three lil helpers, zero drama πΈ
π EXPORTED FUNCTIONS π
these are the ones that get handed to you when you use Zonemaster::Util; β the whole squad fr fr.
info($tag, $href)β builds you aZonemaster::Logger::Entryobject and returns it π«Ά oh and it doesn't just make it and ghost β the object also gets added to the global logger object's list of entries. it's giving main character energy, it's giving "i'm in the group chat AND in the archive".ns($name, $address)β makes and returns a nameserver object with the name and address you gave it. name + address in, nameserver out. slay β¨policy()β returns a reference to the global policy hash π that's it, that's the whole vibe.name($string_name_or_zone)β takes your argument and creates and returns aZonemaster::DNSNameobject for it. one string in, one DNS name object out, iconic behavior.pod_extract_for($testname)β okay so this one will attempt to extract the POD documentation for the test methods in the test module whose name you passed in π if it can, it returns a reference to a hash where the keys are the test method names and the values are the documentation strings. super useful, super cute.
β οΈ but bestie, listen: this method blindly assumes that the structure of the POD is exactly like the one in the Example and Basic test modules. exactly. like. that. if it's not? the results are undefined π no guardrails, no seatbelt, we're just vibing into the void.
scramble_caseβ this routine provides a special effect:sCraMBliNg tHe CaSeππ it's literally just that. that's the feature. and honestly? ate.supports_ipv6β checks if the ZOnemaster hosting server supports IPv6 π¦ yes or no, v6 or not v6.
that's the whole page, bestie β every function, every argument, every warning, nothing skipped π
this doc was brought to you by perl v5.32.0, dated 2021-01-06, from the Zonemaster::Util(3pm) manual page in the user-contributed Perl documentation π mwah, go write some Zonemaster modules, you got this π«Άπ
π¦ where this page comes from
- ubuntu jammy: libzonemaster-perl 1.0.16-2.1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms