{
    "mode": "man",
    "parameter": "GET_ROOT_DOMAIN",
    "section": "1p",
    "url": "https://www.chedong.com/phpMan.php/man/GET_ROOT_DOMAIN/1p/json",
    "generated": "2026-10-22T13:12:54Z",
    "synopsis": "getrootdomain <domainname>",
    "sections": {
        "NAME": {
            "content": "getrootdomain - Retrieve suffix info from a domain using Domain::PublicSuffix\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The getrootdomain utility uses Domain::PublicSuffix to get the root or suffix for a fully\nqualified domain name. Given a FQDN, this utility will output the \"root domain\", and the\nsuffix and TLD used to calculate that root domain.\n\n•   Public Info Site:\n\n<http://publicsuffix.org/>\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "getrootdomain <domainname>\n",
            "subsections": []
        },
        "EXAMPLE USAGE": {
            "content": "$ getrootdomain www.google.com\nDomain: www.google.com\nRoot Domain: google.com\nSuffix: com\nTLD: com\n\n$ getrootdomain www.google.co.uk\nDomain: www.google.co.uk\nRoot Domain: google.co.uk\nSuffix: co.uk\nTLD: uk\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "Returns 0 if a successful lookup is done, non-zero otherwise.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Domain::PublicSuffix(3pm)\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Please  report  any  bugs or feature requests to \"bug-domain-publicsuffix at rt.cpan.org\", or\nthrough                 the                 web                 interface                  at\n<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Domain-PublicSuffix>.   I  will  be notified,\nand then you'll automatically be notified of progress on your bug as I make changes.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "This program is free software; you can redistribute it and/or modify it under the same  terms\nas Perl itself.\n\nperl v5.36.0                                 2023-09-02                          GETROOTDOMAIN(1p)",
            "subsections": []
        }
    },
    "summary": "getrootdomain - Retrieve suffix info from a domain using Domain::PublicSuffix",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "PublicSuffix",
            "section": "3pm",
            "url": "https://www.chedong.com/phpMan.php/man/PublicSuffix/3pm/json"
        }
    ]
}