NAME
Sys::Hostname::Long - Try every conceivable way to get full hostname
SYNOPSIS
use Sys::Hostname::Long;
$host_long = hostname_long;
DESCRIPTION
How to get the host full name in perl on multiple operating systems (mac, windows, unix* etc)
Attempt via many methods to get the systems full name. The Sys::Hostname class is the best and standard way to get the system hostname. However it is missing the long hostname.
Special thanks to David Sundstrom and Greg Bacon for the original Sys::Hostname
SUPPORT
List of platforms supported, tested etc.
MacOS Macintosh Classic OK
Win32 MS Windows (95,98,nt,2000...) Not Tested
MacOS X Macintosh 10 OK
Linux Linux UNIX OS OK
LIMITATIONS
Unix
Most unix systems have trouble working out the fully quallified domain name as it to be configured somewhere in the system correctly. For example in most linux systems (debian, ?) the fully qualified name should be the first entry next to the ip number in /etc/hosts
192.168.0.1 fred.somwhere.special fred
If it is the other way around, it will fail.
Mac
SEE ALSO
L<Sys::Hostname>
AUTHOR
Scott Penrose <scottp@dd.com.au>
COPYRIGHT
Copyright (c) 2001 Scott Penrose. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.