App::A...::Util(3pm)

πŸ“¦
version 1.7 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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