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

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

πŸ’– NAME πŸ’–

App::AllKnowingDNS::Config β€” it's a configuration object bestie, that's the whole vibe ✨

(also this page lives in the User Contributed Perl Documentation section, in case you were wondering where you wandered into 🫢)


🌸 DESCRIPTION 🌸

Quick heads-up before we get into it: the actual user docs are in all-knowing-dns(1). This page is the object-level tea β˜•

So like, this module defines an object that holds the parsed version of the AllKnowingDNS configuration file. That's it. That's the whole thing. It ate and left no crumbs πŸ’…


✨ FUNCTIONS ✨

πŸ¦‹ zone_for_ptr($zone)

Okay so this one hands you back the appropriate zone for the given PTR query β€” or undef if there is, tragically, no appropriate zone 😭 no zone for you, sorry babe.

Example, and yes we're keeping it exactly:

my $query = '7.c.e.2.3.4.e.f.f.f.b.d.9.1.2.0.' .
            '0.c.c.c.e.0.0.1.8.8.d.4.1.0.0.2.ip6.arpa';
my $zone = $config->zone_for_ptr($query);
return 'NXDOMAIN' unless defined($zone);
...

🌈 zone_for_aaaa($zone)

Same energy, different query type ✨ This one returns the appropriate zone for the given AAAA query, or undef if there is no appropriate zone. Fr fr, if it's undef, it's undef πŸ™ˆ

Example, verbatim, no notes:

my $query = 'ipv6-foo.nutzer.raumzeitlabor.de';
my $zone = $config->zone_for_aaaa($query);
return 'NXDOMAIN' unless defined($zone);
...

πŸŽ€ VERSION πŸŽ€

Version 1.7 πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Michael Stapelberg, "<michael at stapelberg.de>" β€” the icon who made this happen 🫢


Copyright 2012 Michael Stapelberg.

This program is free software; you can redistribute it and/or modify it under the terms of the BSD license. Slay, permissive licensing, we love to see it πŸ’…


And that's the whole page bestie!! This was perl v5.40.1, dated 2025-04-15, and the page you just read is App::A...Config(3pm) πŸ¦‹ stay config'd, stay iconic, periodt ✨

πŸ“¦ where this page comes from