1Net::Domain(3)        User Contributed Perl Documentation       Net::Domain(3)
2
3
4

NAME

6       Net::Domain - Attempt to evaluate the current host's internet name and
7       domain
8

SYNOPSIS

10           use Net::Domain qw(hostname hostfqdn hostdomain domainname);
11

DESCRIPTION

13       Using various methods attempt to find the Fully Qualified Domain Name
14       (FQDN) of the current host. From this determine the host-name and the
15       host-domain.
16
17       Each of the functions will return undef if the FQDN cannot be
18       determined.
19
20       hostfqdn ()
21           Identify and return the FQDN of the current host.
22
23       domainname ()
24           An alias for hostfqdn ().
25
26       hostname ()
27           Returns the smallest part of the FQDN which can be used to identify
28           the host.
29
30       hostdomain ()
31           Returns the remainder of the FQDN after the hostname has been
32           removed.
33

AUTHOR

35       Graham Barr <gbarr@pobox.com>.
36
37       Adapted from Sys::Hostname by David Sundstrom
38       <sunds@asictest.sc.ti.com>.
39
40       Steve Hay <shay@cpan.org> is now maintaining libnet as of version
41       1.22_02.
42
44       Copyright (C) 1995-1998 Graham Barr.  All rights reserved.
45
46       Copyright (C) 2013-2014 Steve Hay.  All rights reserved.
47

LICENCE

49       This module is free software; you can redistribute it and/or modify it
50       under the same terms as Perl itself, i.e. under the terms of either the
51       GNU General Public License or the Artistic License, as specified in the
52       LICENCE file.
53
54
55
56perl v5.30.1                      2020-01-30                    Net::Domain(3)
Impressum