{
    "mode": "perldoc",
    "parameter": "Net::DNS::RR::SPF",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ADNS%3A%3ARR%3A%3ASPF/json",
    "generated": "2026-06-16T03:31:29Z",
    "synopsis": "use Net::DNS;\n$rr = Net::DNS::RR->new('name SPF spfdata ...');\n$rr = Net::DNS::RR->new( name    => 'name',\ntype    => 'SPF',\nspfdata => 'single text string'\n);\n$rr = Net::DNS::RR->new( name    => 'name',\ntype    => 'SPF',\nspfdata => [ 'multiple', 'strings', ... ]\n);",
    "sections": {
        "NAME": {
            "content": "Net::DNS::RR::SPF - DNS SPF resource record\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::DNS;\n$rr = Net::DNS::RR->new('name SPF spfdata ...');\n\n$rr = Net::DNS::RR->new( name    => 'name',\ntype    => 'SPF',\nspfdata => 'single text string'\n);\n\n$rr = Net::DNS::RR->new( name    => 'name',\ntype    => 'SPF',\nspfdata => [ 'multiple', 'strings', ... ]\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Class for DNS Sender Policy Framework (SPF) resource records.\n\nSPF records inherit most of the properties of the Net::DNS::RR::TXT\nclass.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "The available methods are those inherited from the base class augmented\nby the type-specific methods defined in this package.\n\nUse of undocumented package features or direct access to internal data\nstructures is discouraged and could result in program termination or\nother unpredictable behaviour.\n\nspfdata\ntxtdata\n$string = $rr->spfdata;\n@list   = $rr->spfdata;\n\n$rr->spfdata( @list );\n\nWhen invoked in scalar context, spfdata() returns the policy text as a\nsingle string, with text elements concatenated without intervening\nspaces.\n\nIn a list context, spfdata() returns a list of the text elements.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c)2005 Olaf Kolkman, NLnet Labs.\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\ndocumentation for any purpose and without fee is hereby granted,\nprovided that the original copyright notices appear in all copies and\nthat both copyright notice and this permission notice appear in\nsupporting documentation, and that the name of the author not be used in\nadvertising or publicity pertaining to distribution of the software\nwithout specific prior written permission.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "perl, Net::DNS, Net::DNS::RR, Net::DNS::RR::TXT, RFC7208\n",
            "subsections": []
        }
    },
    "summary": "Net::DNS::RR::SPF - DNS SPF resource record",
    "flags": [],
    "examples": [],
    "see_also": []
}