{
    "mode": "perldoc",
    "parameter": "Net::DNS::RR::DS",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ADNS%3A%3ARR%3A%3ADS/json",
    "generated": "2026-06-15T14:52:47Z",
    "synopsis": "use Net::DNS;\n$rr = Net::DNS::RR->new('name DS keytag algorithm digtype digest');\nuse Net::DNS::SEC;\n$ds = Net::DNS::RR::DS->create(\n$dnskeyrr,\ndigtype => 'SHA256',\nttl     => 3600\n);",
    "sections": {
        "NAME": {
            "content": "Net::DNS::RR::DS - DNS DS resource record\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::DNS;\n$rr = Net::DNS::RR->new('name DS keytag algorithm digtype digest');\n\nuse Net::DNS::SEC;\n$ds = Net::DNS::RR::DS->create(\n$dnskeyrr,\ndigtype => 'SHA256',\nttl     => 3600\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Class for DNS Delegation Signer (DS) resource record.\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\nkeytag\n$keytag = $rr->keytag;\n$rr->keytag( $keytag );\n\nThe 16-bit numerical key tag of the key. (RFC2535 4.1.6)\n\nalgorithm\n$algorithm = $rr->algorithm;\n$rr->algorithm( $algorithm );\n\nDecimal representation of the 8-bit algorithm field.\n",
            "subsections": [
                {
                    "name": "algorithm",
                    "content": "numeric code translation.\n\ndigtype\n$digtype = $rr->digtype;\n$rr->digtype( $digtype );\n\nDecimal representation of the 8-bit digest type field.\n"
                },
                {
                    "name": "digtype",
                    "content": "numeric code translation.\n\ndigest\n$digest = $rr->digest;\n$rr->digest( $digest );\n\nHexadecimal representation of the digest over the label and key.\n\ndigestbin\n$digestbin = $rr->digestbin;\n$rr->digestbin( $digestbin );\n\nBinary representation of the digest over the label and key.\n\nbabble\nprint $rr->babble;\n\nThe babble() method returns the 'BubbleBabble' representation of the digest if the\nDigest::BubbleBabble package is available, otherwise an empty string is returned.\n\nBubbleBabble represents a message digest as a string of plausible words, to make the digest\neasier to verify. The \"words\" are not necessarily real words, but they look more like words than\na string of hex characters.\n\nThe 'BubbleBabble' string is appended as a comment when the string method is called.\n\ncreate\nuse Net::DNS::SEC;\n\n$dsrr = Net::DNS::RR::DS->create( $keyrr, digtype => 'SHA-256' );\n$keyrr->print;\n$dsrr->print;\n\nThis constructor takes a DNSKEY argument and will return the corresponding DS RR constructed\nusing the specified algorithm.\n\nThe digest algorithm defaults to SHA-1.\n\nverify\n$verify = $dsrr->verify($keyrr);\n\nThe boolean verify method will return true if the hash over the key RR provided as the argument\nconforms to the data in the DS itself i.e. the DS points to the DNSKEY from the argument.\n"
                }
            ]
        },
        "COPYRIGHT": {
            "content": "Copyright (c)2001-2005 RIPE NCC. Author Olaf M. Kolkman\n\nPortions Copyright (c)2013,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, RFC4034\n\nDigest Types <http://www.iana.org/assignments/ds-rr-types>\n\nAlgorithm Numbers <http://www.iana.org/assignments/dns-sec-alg-numbers>\n",
            "subsections": []
        }
    },
    "summary": "Net::DNS::RR::DS - DNS DS resource record",
    "flags": [],
    "examples": [],
    "see_also": []
}