{
    "mode": "perldoc",
    "parameter": "Net::DNS::RR::SVCB",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ADNS%3A%3ARR%3A%3ASVCB/json",
    "generated": "2026-06-14T05:26:18Z",
    "synopsis": "use Net::DNS;\n$rr = Net::DNS::RR->new('name HTTPS SvcPriority TargetName SvcParams');",
    "sections": {
        "NAME": {
            "content": "Net::DNS::RR::SVCB - DNS SVCB resource record\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::DNS;\n$rr = Net::DNS::RR->new('name HTTPS SvcPriority TargetName SvcParams');\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "DNS Service Binding (SVCB) resource record\n\nService binding and parameter specification via the DNS (SVCB and HTTPS RRs)\n",
            "subsections": []
        },
        "METHODS": {
            "content": "The available methods are those inherited from the base class augmented by the type-specific\nmethods defined in this package.\n\nUse of undocumented package features or direct access to internal data structures is discouraged\nand could result in program termination or other unpredictable behaviour.\n",
            "subsections": [
                {
                    "name": "SvcPriority",
                    "content": "$svcpriority = $rr->svcpriority;\n$rr->svcpriority( $svcpriority );\n\nThe priority of this record (relative to others, with lower values preferred). A value of 0\nindicates AliasMode.\n"
                },
                {
                    "name": "TargetName",
                    "content": "$rr->targetname( $targetname );\n$effecivetarget = $rr->targetname;\n\nThe domain name of either the alias target (for AliasMode) or the alternative endpoint (for\nServiceMode).\n\nFor AliasMode SVCB RRs, a TargetName of \".\" indicates that the service is not available or does\nnot exist.\n\nFor ServiceMode SVCB RRs, a TargetName of \".\" indicates that the owner name of this record must\nbe used as the effective TargetName.\n\nmandatory, alpn, no-default-alpn, port, ipv4hint, ech, ipv6hint\n$rr = Net::DNS::RR->new( 'svcb.example. SVCB 1 svcb.example. port=1234' );\n\n$rr->port(1234);\n$string = $rr->port();      # \\004\\210\n$rr->key3($string);\n\nConstructor methods for mnemonic SvcParams defined in draft-ietf-dnsop-svcb-https. When invoked\nwithout arguments, the methods return the presentation format value for the underlying key. The\nbehaviour with undefined arguments is not specified.\n\nkeyNN\n$keynn = $rr->keyNN;\n$rr->keyNN( $keynn );\n$rr->keyNN( undef );\n\nGeneric constructor and accessor methods for SvcParams. The key index NN is a decimal integer in\nthe range 0 .. 65535. The method argument and returned value are both presentation format\nstrings. The method returns the undefined value if the key is not present. The specified key\nwill be deleted if the value is undefined.\n"
                }
            ]
        },
        "COPYRIGHT": {
            "content": "Copyright (c)2020-2021 Dick Franks.\n\nAll rights reserved.\n\nPackage template (c)2009,2012 O.M.Kolkman and R.W.Franks.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Permission to use, copy, modify, and distribute this software and its documentation for any\npurpose and without fee is hereby granted, provided that the original copyright notices appear\nin all copies and that both copyright notice and this permission notice appear in supporting\ndocumentation, and that the name of the author not be used in advertising or publicity\npertaining to distribution of the software without specific prior written permission.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING\nBUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "perl, Net::DNS, Net::DNS::RR, draft-ietf-dnsop-svcb-https\n",
            "subsections": []
        }
    },
    "summary": "Net::DNS::RR::SVCB - DNS SVCB resource record",
    "flags": [],
    "examples": [],
    "see_also": []
}