Zonema...Address(3pm)
β¨ NAME β¨
okay so bestie, listen up π this is Zonemaster::Test::Address, a Perl module (shoutout to the User Contributed Perl Documentation gang π«Ά) that implements the tests focused on the Address specific test cases of the DNS tests. it's giving very niche, very essential, no cap.
πΈ SYNOPSIS πΈ
literally all you gotta do:
my @results = Zonemaster::Test::Address->all($zone);
and boom, you're in π
π METHODS π
all($zone)β runs the default set of tests and hands you back a list of log entries that the tests made. the whole main character moment fr fr β¨metadata()β returns a reference to a hash. the keys are the names of all the test methods in the module, and each value is a reference to a list of all the tags that method can use in log entries. iconic little lookup table, honestly πtranslation()β returns a reference to a hash with translation data. it's used by the builtin translation system, so like, don't touch it, just vibe with it πversion()β returns a version string for the module. short, sweet, slays π
π¦ TESTS π¦
address01($zone)β verify that IPv4 addresses are not in private networks. keep your private biz private, periodt πaddress02($zone)β verify that reverse DNS entries exist for the nameservers' IP addresses. if there's no reverse entry, that's a red flag bestie π©address03($zone)β verify that the reverse DNS entries actually match the nameservers' names. the way they gotta line up perfectly or it's a whole situation πfind_special_address($ip)β verify that a given address (aNet::IP::XSone) is a special one β meaning private, reserved, ... you know the type π
lowkey important: that$ipinfind_special_addresshas to be aNet::IP::XSobject, not just any old string. don't come for me, come for the types π«Ά
that's the whole page bestie, no notes πΈβ¨ go forth and test those addresses, you absolute legend π§π
cute little sign-off: this one's from perl v5.32.0, dated 2021-01-06, and yes, we're still living in the Zonemaster::Test::Address(3pm) era π
π¦ 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