1Net::Domain(3pm)       Perl Programmers Reference Guide       Net::Domain(3pm)
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>.  Adapted from Sys::Hostname by David
36       Sundstrom <sunds@asictest.sc.ti.com>
37
39       Copyright (c) 1995-1998 Graham Barr. All rights reserved.  This program
40       is free software; you can redistribute it and/or modify it under the
41       same terms as Perl itself.
42
43
44
45perl v5.10.1                      2009-02-12                  Net::Domain(3pm)
Impressum