Net::DNS::RR::SVCB(3)
π Net::DNS::RR::SVCB β DNS SVCB resource record β¨
okay bestie, this is the Net::DNS::RR::SVCB manpage (that's the Perl module name, it's in the Net::DNS family, section 3 of the manual) and honestly? it's giving "quietly powerful" and we're obsessed π
π¦ NAME
Net::DNS::RR::SVCB β DNS SVCB resource record. yes that's it, that's the whole vibe check, it's the Service Binding record and it's a whole main character π
πΈ SYNOPSIS
use Net::DNS;
$rr = Net::DNS::RR->new('name SVCB SvcPriority TargetName SvcParams');
literally just that, one new call and you're in β¨
π DESCRIPTION
DNS Service Binding (SVCB) resource record, bestie!! π
and the official little subtitle-thing: service binding and parameter specification via the DNS (SVCB and HTTPS RRs) π¦
π₯ METHODS
so the way this works is: the available methods are the ones you inherit from the base class, PLUS all the type-specific ones defined right here in this package. best of both worlds, no cap π
β οΈ real talk: using undocumented package features or reaching directly into internal data structures is discouraged and could result in program termination or other unpredictable behaviour. do not do it. i'm serious. π
β SvcPriority
$rr->SvcPriority( $svcpriority );
$svcpriority = $rr->SvcPriority;
this is the priority of this record relative to the others in the RRset β and remember, lower values are preferred β¨ a value of 0 indicates AliasMode.') π (yes the stray quote-and-paren is in the original, it's iconic, we keep it)
π TargetName
$rr->targetname( $targetname );
$effecivetarget = $rr->targetname;
the domain name of either the alias target (for AliasMode) or the alternative endpoint (for ServiceMode) π«Ά
now the two big rules, write these on your mirror in lipgloss:
- for AliasMode SVCB RRs, a TargetName of
.indicates that the service is not available or does not exist π - for ServiceMode SVCB RRs, a TargetName of
.indicates that the owner name of this record must be used as the effective TargetName π
π mandatory, alpn, no-default-alpn, port, ipv4hint, ech, ipv6hint
$rr = Net::DNS::RR->new( 'svcb.example. SVCB 1 svcb.example. port=1234' );
$rr->port(1234);
$octets = $rr->port(); # 0x04 0xD2
$octets = $rr->key3();
these are the constructor methods for mnemonic SvcParams prescribed by RFC9460 β slay π§
when you invoke them with no arguments, they hand you back the value of the underlying key as an uninterpreted octet string (like, it's just raw bytes, don't overthink it π). and the behaviour with undefined arguments? not specified. so like... don't π
π keyNN
$keynn = $rr->keyNN;
$rr->keyNN( $keynn );
$rr->keyNN( undef );
generic constructor and accessor methods for SvcParams, the utility player of the group chat π«Ά
- the key index
NNis a decimal integer in the range0 .. 65535 - the method argument is a presentation format character string
- the returned value is an uninterpreted octet string
- the method returns the undefined value if the key is not present
- the specified key will be deleted if the argument is undefined ποΈ
π COPYRIGHT
Copyright (c)2020-2025 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. π
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.
(that's the whole legal bit, don't skip it, it's not decorative π)
π¦ SEE ALSO
perlNet::DNSNet::DNS::RRRFC9460(2)- <https://iana.org/go/rfc9460#section-2>
- Service Parameter Keys <https://iana.org/assignments/dns-svcb>
and that's the page, bestie!! π this one dropped as perl v5.42.0 on 2026-09-02 and the header/footer said Net::DNS::RR::SVCB(3) the whole time β go forth and bind your services, ily πβ¨
π¦ 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