8.153. Net::Domain
Attempts to evaluate the current
host's Internet name and domain using several
methods. This module is part of the core Perl distribution starting
with Perl 5.8.
For example, each of the following Net::Domain functions will return
undef if the FQDN cannot be determined.
Returns the remainder of the FQDN after the hostname has been removed.
hostdomain()
Identifies and returns the FQDN of the current host.
hostfqdn()
Returns the smallest part of the FQDN that can be used to identify
hostname()
the host.