Net::Domain(3p) Perl Programmers Reference Guide Net::Domain(3p) #
Net::Domain(3p) Perl Programmers Reference Guide Net::Domain(3p)
NNAAMMEE #
Net::Domain - Attempt to evaluate the current host's internet name and
domain
SSYYNNOOPPSSIISS #
use Net::Domain qw(hostname hostfqdn hostdomain domainname);
DDEESSCCRRIIPPTTIIOONN #
Using various methods aatttteemmpptt to find the Fully Qualified Domain Name
(FQDN) of the current host. From this determine the host-name and the
host-domain.
Each of the functions will return _u_n_d_e_f if the FQDN cannot be determined.
FFuunnccttiioonnss “hostfqdn()” Identify and return the FQDN of the current host.
"domainname()"
An alias for hhoossttffqqddnn(()).
"hostname()"
Returns the smallest part of the FQDN which can be used to identify
the host.
"hostdomain()"
Returns the remainder of the FQDN after the _h_o_s_t_n_a_m_e has been
removed.
EEXXPPOORRTTSS #
The following symbols are, or can be, exported by this module:
Default Exports
_N_o_n_e.
Optional Exports
"hostname", "hostdomain", "hostfqdn", "domainname".
Export Tags
_N_o_n_e.
KKNNOOWWNN BBUUGGSS #
See <https://rt.cpan.org/Dist/Display.html?Status=Active&Queue=libnet>.
AAUUTTHHOORR #
Graham Barr <gbarr@pobox.com <mailto:gbarr@pobox.com>>.
Adapted from Sys::Hostname by David Sundstrom <sunds@asictest.sc.ti.com
<mailto:sunds@asictest.sc.ti.com>>.
Steve Hay <shay@cpan.org <mailto:shay@cpan.org>> is now maintaining
libnet as of version 1.22_02.
CCOOPPYYRRIIGGHHTT #
Copyright (C) 1995-1998 Graham Barr. All rights reserved.
Copyright (C) 2013-2014, 2020 Steve Hay. All rights reserved.
LLIICCEENNCCEE #
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself, i.e. under the terms of either the
GNU General Public License or the Artistic License, as specified in the
_L_I_C_E_N_C_E file.
VVEERRSSIIOONN #
Version 3.14
DDAATTEE #
23 Dec 2020
HHIISSTTOORRYY #
See the _C_h_a_n_g_e_s file.
perl v5.36.3 2023-02-15 Net::Domain(3p)