{
    "mode": "perldoc",
    "parameter": "Net::Domain",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ADomain/json",
    "generated": "2026-06-03T03:35:18Z",
    "synopsis": "use Net::Domain qw(hostname hostfqdn hostdomain domainname);",
    "sections": {
        "NAME": {
            "content": "Net::Domain - Attempt to evaluate the current host's internet name and domain\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::Domain qw(hostname hostfqdn hostdomain domainname);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Using various methods attempt to find the Fully Qualified Domain Name (FQDN) of the current\nhost. From this determine the host-name and the host-domain.\n\nEach of the functions will return *undef* if the FQDN cannot be determined.\n",
            "subsections": [
                {
                    "name": "Functions",
                    "content": "\"hostfqdn()\"\nIdentify and return the FQDN of the current host.\n\n\"domainname()\"\nAn alias for hostfqdn().\n\n\"hostname()\"\nReturns the smallest part of the FQDN which can be used to identify the host.\n\n\"hostdomain()\"\nReturns the remainder of the FQDN after the *hostname* has been removed.\n"
                }
            ]
        },
        "EXPORTS": {
            "content": "The following symbols are, or can be, exported by this module:\n\nDefault Exports\n*None*.\n\nOptional Exports\n\"hostname\", \"hostdomain\", \"hostfqdn\", \"domainname\".\n\nExport Tags\n*None*.\n",
            "subsections": []
        },
        "KNOWN BUGS": {
            "content": "See <https://rt.cpan.org/Dist/Display.html?Status=Active&Queue=libnet>.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Graham Barr <gbarr@pobox.com <mailto:gbarr@pobox.com>>.\n\nAdapted from Sys::Hostname by David Sundstrom <sunds@asictest.sc.ti.com\n<mailto:sunds@asictest.sc.ti.com>>.\n\nSteve Hay <shay@cpan.org <mailto:shay@cpan.org>> is now maintaining libnet as of version\n1.2202.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (C) 1995-1998 Graham Barr. All rights reserved.\n\nCopyright (C) 2013-2014, 2020 Steve Hay. All rights reserved.\n",
            "subsections": []
        },
        "LICENCE": {
            "content": "This module is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself, i.e. under the terms of either the GNU General Public License or the Artistic\nLicense, as specified in the LICENCE file.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.13\n",
            "subsections": []
        },
        "DATE": {
            "content": "23 Dec 2020\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "See the Changes file.\n",
            "subsections": []
        }
    },
    "summary": "Net::Domain - Attempt to evaluate the current host's internet name and domain",
    "flags": [],
    "examples": [],
    "see_also": []
}