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   Functions
21       "hostfqdn()"
22           Identify and return the FQDN of the current host.
23
24       "domainname()"
25           An alias for hostfqdn().
26
27       "hostname()"
28           Returns the smallest part of the FQDN which can be used to identify
29           the host.
30
31       "hostdomain()"
32           Returns the remainder of the FQDN after the hostname has been
33           removed.
34

EXPORTS

36       The following symbols are, or can be, exported by this module:
37
38       Default Exports
39           None.
40
41       Optional Exports
42           "hostname", "hostdomain", "hostfqdn", "domainname".
43
44       Export Tags
45           None.
46

KNOWN BUGS

48       See <https://rt.cpan.org/Dist/Display.html?Status=Active&Queue=libnet>.
49

AUTHOR

51       Graham Barr <gbarr@pobox.com <mailto:gbarr@pobox.com>>.
52
53       Adapted from Sys::Hostname by David Sundstrom <sunds@asictest.sc.ti.com
54       <mailto:sunds@asictest.sc.ti.com>>.
55
56       Steve Hay <shay@cpan.org <mailto:shay@cpan.org>> is now maintaining
57       libnet as of version 1.22_02.
58
60       Copyright (C) 1995-1998 Graham Barr.  All rights reserved.
61
62       Copyright (C) 2013-2014, 2020 Steve Hay.  All rights reserved.
63

LICENCE

65       This module is free software; you can redistribute it and/or modify it
66       under the same terms as Perl itself, i.e. under the terms of either the
67       GNU General Public License or the Artistic License, as specified in the
68       LICENCE file.
69

VERSION

71       Version 3.13
72

DATE

74       23 Dec 2020
75

HISTORY

77       See the Changes file.
78
79
80
81perl v5.34.0                      2022-01-21                    Net::Domain(3)
Impressum