FreeBSD.software
Home/sysutils/p5-Sys-Hostname-FQDN

p5-Sys-Hostname-FQDN

0.11_1sysutils

Get the short or long hostname

Sys::Hostname::FQDN uses the host 'C' library to discover the (usually) short host name, then uses (perl) gethostbyname to extract the real hostname. The results from gethostbyname are exported as gethostinfo and asciihostinfo as a convenience since they are available. Similarly, the 'C' library functions inet_ntoa and inet_aton are exported.

$pkg install p5-Sys-Hostname-FQDN
metacpan.org/release/Sys-Hostname-FQDN
Origin
sysutils/p5-Sys-Hostname-FQDN
Size
28.3KiB
License
ART20
Maintainer
snowfly@yuntech.edu.tw
Dependencies
1 packages
Required by
0 packages

Dependencies (1)