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);
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 deter‐
18       mined.
19
20       hostfqdn ()
21           Identify and return the FQDN of the current host.
22
23       hostname ()
24           Returns the smallest part of the FQDN which can be used to identify
25           the host.
26
27       hostdomain ()
28           Returns the remainder of the FQDN after the hostname has been
29           removed.
30

AUTHOR

32       Graham Barr <gbarr@pobox.com>.  Adapted from Sys::Hostname by David
33       Sundstrom <sunds@asictest.sc.ti.com>
34
36       Copyright (c) 1995-1998 Graham Barr. All rights reserved.  This program
37       is free software; you can redistribute it and/or modify it under the
38       same terms as Perl itself.
39
40       $Id: //depot/libnet/Net/Domain.pm#21 $
41
42
43
44perl v5.8.8                       2001-09-21                  Net::Domain(3pm)
Impressum