Zonema...Address(3pm)

πŸ“¦ version 1.0.16, in ubuntu jammy

✨ 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 (a Net::IP::XS one) is a special one β€” meaning private, reserved, ... you know the type πŸ’€
lowkey important: that $ip in find_special_address has to be a Net::IP::XS object, 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