home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeJava and XSLTSearch this book

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.

hostdomain

hostdomain()

Returns the remainder of the FQDN after the hostname has been removed.

hostfqdn

hostfqdn()

Identifies and returns the FQDN of the current host.

hostname

hostname()

Returns the smallest part of the FQDN that can be used to identify the host.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.