Net::DNS::RR::SVCB3pm
Dns svcb resource record
Usage
use Net::DNS;$rr = Net::DNS::RR->new('name SVCB SvcPriority TargetName SvcParams');
Overview
DNS Service Binding (SVCB) resource record
Service binding and parameter specification via the DNS (SVCB and HTTPS RRs)
Methods
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour.
SvcPriority
$rr->SvcPriority( $svcpriority );$svcpriority = $rr->SvcPriority;
The priority of this record relative to others in the RRset, (lower values being preferred). A value of 0 indicates AliasMode.')
TargetName
$rr->targetname( $targetname );$effecivetarget = $rr->targetname;
The domain name of either the alias target (for AliasMode) or the alternative endpoint (for ServiceMode).
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();
Constructor methods for mnemonic SvcParams prescribed by RFC9460. When invoked without arguments, the methods return the value of the underlying key as an uninterpreted octet string. The behaviour with undefined arguments is not specified.
keyNN
$keynn = $rr->keyNN;$rr->keyNN( $keynn );$rr->keyNN( undef );
Generic constructor and accessor methods for SvcParams. The key index NN is a decimal integer in the range 0 .. 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.
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.