{
    "content": [
        {
            "type": "text",
            "text": "# Net::DNS::RR::SRV (perldoc)\n\n## NAME\n\nNet::DNS::RR::SRV - DNS SRV resource record\n\n## SYNOPSIS\n\nuse Net::DNS;\n$rr = Net::DNS::RR->new('name SRV priority weight port target');\n\n## DESCRIPTION\n\nClass for DNS Service (SRV) resource records.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **Sorting of SRV Records**\n- **COPYRIGHT**\n- **LICENSE**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::DNS::RR::SRV",
        "section": "",
        "mode": "perldoc",
        "summary": "Net::DNS::RR::SRV - DNS SRV resource record",
        "synopsis": "use Net::DNS;\n$rr = Net::DNS::RR->new('name SRV priority weight port target');",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 30,
                "subsections": []
            },
            {
                "name": "Sorting of SRV Records",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Net::DNS::RR::SRV - DNS SRV resource record\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Net::DNS;\n$rr = Net::DNS::RR->new('name SRV priority weight port target');\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Class for DNS Service (SRV) 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\npriority\n$priority = $rr->priority;\n$rr->priority( $priority );\n\nReturns the priority for this target host.\n\nweight\n$weight = $rr->weight;\n$rr->weight( $weight );\n\nReturns the weight for this target host.\n\nport\n$port = $rr->port;\n$rr->port( $port );\n\nReturns the port number for the service on this target host.\n\ntarget\n$target = $rr->target;\n$rr->target( $target );\n\nReturns the domain name of the target host.\n",
                "subsections": []
            },
            "Sorting of SRV Records": {
                "content": "By default, rrsort() returns the SRV records sorted from lowest to highest priority and for\nequal priorities from highest to lowest weight.\n\nNote: This is NOT the order in which connections should be attempted.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (c)1997 Michael Fuhr.\n\nPortions 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 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, RFC2782\n",
                "subsections": []
            }
        }
    }
}