{
    "mode": "perldoc",
    "parameter": "Net::DNS::RR::DNSKEY",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ADNS%3A%3ARR%3A%3ADNSKEY/json",
    "generated": "2026-06-13T16:14:42Z",
    "synopsis": "use Net::DNS;\n$rr = Net::DNS::RR->new('name DNSKEY flags protocol algorithm publickey');",
    "sections": {
        "NAME": {
            "content": "Net::DNS::RR::DNSKEY - DNS DNSKEY resource record\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::DNS;\n$rr = Net::DNS::RR->new('name DNSKEY flags protocol algorithm publickey');\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Class for DNSSEC Key (DNSKEY) resource records.\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\nflags\n$flags = $rr->flags;\n$rr->flags( $flags );\n\nUnsigned 16-bit number representing Boolean flags.\n\nzone\n$rr->zone(1);\n\nif ( $rr->zone ) {\n...\n}\n\nBoolean ZONE flag.\n\nrevoke\n$rr->revoke(1);\n\nif ( $rr->revoke ) {\n...\n}\n\nBoolean REVOKE flag.\n\nsep\n$rr->sep(1);\n\nif ( $rr->sep ) {\n...\n}\n\nBoolean Secure Entry Point (SEP) flag.\n\nprotocol\n$protocol = $rr->protocol;\n$rr->protocol( $protocol );\n\nThe 8-bit protocol number. This field MUST have value 3.\n\nalgorithm\n$algorithm = $rr->algorithm;\n$rr->algorithm( $algorithm );\n\nThe 8-bit algorithm number describes the public key algorithm.\n",
            "subsections": [
                {
                    "name": "algorithm",
                    "content": "numeric code translation.\n\npublickey\nkey\n$key = $rr->key;\n$rr->key( $key );\n\nBase64 representation of the public key material.\n\nkeybin\n$keybin = $rr->keybin;\n$rr->keybin( $keybin );\n\nOpaque octet string representing the public key material.\n\nprivatekeyname\n$privatekeyname = $rr->privatekeyname;\n\nReturns the name of the privatekey as it would be generated by the BIND dnssec-keygen program.\nThe format of that name being:\n\nK<fqdn>+<algorithm>+<keyid>.private\n\nsigname\nReturns the canonical signer name of the privatekey.\n\nkeylength\nReturns the length (in bits) of the modulus calculated from the key text.\n\nkeytag\nprint \"keytag = \", $rr->keytag, \"\\n\";\n\nReturns the 16-bit numerical key tag of the key. (RFC2535 4.1.6)\n"
                }
            ]
        },
        "COPYRIGHT": {
            "content": "Copyright (c)2003-2005 RIPE NCC. Author Olaf M. Kolkman\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\nDNSKEY Flags <http://www.iana.org/assignments/dnskey-flags>\n\nAlgorithm Numbers <http://www.iana.org/assignments/dns-sec-alg-numbers>\n",
            "subsections": []
        }
    },
    "summary": "Net::DNS::RR::DNSKEY - DNS DNSKEY resource record",
    "flags": [],
    "examples": [],
    "see_also": []
}