Net::DN...MTRELAY(3)
π
Net::DN...MTRELAY(3) β aka Net::DNS::RR::AMTRELAY, the DNS AMTRELAY resource record π
okay so bestie, listen β this is the manual page for Net::DNS::RR::AMTRELAY, and it's literally the Perl class for the DNS AMTRELAY resource record. It's giving very niche, very network-nerd, and honestly? iconic. π¦
β¨ SYNOPSIS β¨
use Net::DNS;
$rr = Net::DNS::RR->new('owner AMTRELAY precedence Dbit relaytype relay');
that's it. that's the whole vibe. one constructor call and you're in. π₯
πΈ DESCRIPTION πΈ
so the AMTRELAY resource record exists to permit DNS Reverse IP AMT Discovery (DRIAD) β which is a mechanism for AMT gateways to discover AMT relays that are capable of forwarding multicast traffic from a known source IP address. no cap, that's the whole point of it. π«
and bc you're wondering: AMT (Automatic Multicast Tunneling) is defined in RFC7450, and it provides a method to transport multicast traffic over a unicast tunnel so you can traverse network segments that are not multicast capable. tunnel girl summer. π§
π METHODS π
the available methods are those inherited from the base class, augmented by the type-specific methods defined in this package. so you get the family traits plus the special little extras. π«Ά
β οΈ real talk: use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour. so likeβ¦ don't. π
β precedence
$precedence = $rr->precedence;
$rr->precedence( $precedence );
an 8-bit integer which indicates relative precedence within the RRset. relays listed in AMTRELAY records with lower precedence are to be attempted first β so lowkey the smaller number is the main character here. π
π¦ Dbit, Discovery Optional
$Dbit = $rr->Dbit;
$rr->Dbit(1);
a Boolean field which indicates that the gateway MAY send an AMT Request message directly to the discovered relay address without first sending an AMT Discovery message. yes the capital MAY is doing a lot of work there, it's a permission not an order bestie. π
π relaytype
$relaytype = $rr->relaytype;
the relaytype type field indicates the format of the information that is stored in the relay field. the following values are defined:
0β the relay field is empty (0 bytes).1β the relay field contains a 4-octet IPv4 address.2β the relay field contains a 16-octet IPv6 address.3β the relay field contains a wire-encoded domain name.
one field, four fits. choose your fighter. β
π relay
$relay = $rr->relay;
$rr->relay( $relay );
the relay field is the address or domain name of the AMT relay. and the way it's formatted? entirely according to the relaytype field. so like, it's not doing its own thing β it's matching energy. π
π COPYRIGHT π
Copyright (c)2020 Dick Franks.
All rights reserved.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
π§ LICENSE π§
permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted β provided that the original copyright notices appear in all copies and that both copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. read the fine print, bestie, it's short but it matters. π
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
π«Ά translation: it's free, it's yours, but nobody's promising it works and nobody's paying for your damages. standard software slay, honestly.
π SEE ALSO π
perlNet::DNSNet::DNS::RRRFC8777- <https://iana.org/go/rfc8777>
okay that's the whole page, you ate that. π β¨ and for the record, this little masterpiece is brought to you by perl v5.42.0, dated 2026-09-02 β go off, Perl, we love a legend that's still showing up. ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-DNS 1.570.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms