App::A...::Util(3pm)
π App::AllKnowingDNS::Util π
okay so bestie, welcome to App::AllKnowingDNS::Util β that's the utility functions module, the lil backstage crew that does the Actual Work so the main show can slay β¨
πΈ DESCRIPTION πΈ
Note: the user-facing docs live over in all-knowing-dns(1). This one's the behind-the-scenes lore, iykyk π«Ά
π FUNCTIONS π
β¨ parse_config($lines) β¨
It takes a big ol' block of text and parses it as a configfile. That's it, that's the job π
And what do you get back? A whole App::AllKnowingDNS::Config object, all dressed up and ready to go. Iconic.
$linesβ a block of text, and it's getting parsed as a configfile, periodt.
π¦ netmask_to_ptrzone($netmask) π¦
Takes the netmask you hand it and converts it to a PTR zone. No cap, that's the whole vibe. π
$netmaskβ the netmask going in, the PTR zone coming out.
Example time, bestie π:
my $ptrzone = netmask_to_ptrzone('2001:4d88:100e:ccc0::/64');
say $ptrzone; # 0.c.c.c.e.0.0.1.8.8.d.4.1.0.0.2.ip6.arpa
Look at that. 2001:4d88:100e:ccc0::/64 walks in, and 0.c.c.c.e.0.0.1.8.8.d.4.1.0.0.2.ip6.arpa walks out. Ate. π₯π
π that's the whole page, babe π
This one's from perl v5.40.1, dated 2025-04-15 β go forth and configure your DNS, main character ππ
π¦ where this page comes from
- debian trixie: all-knowing-dns 1.7-7 Β· BSD-3-Clause
- ubuntu resolute: all-knowing-dns 1.7-7 Β· BSD-3-Clause
- ubuntu stonking: all-knowing-dns 1.7-7 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms