1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/sysutils/p5-Sys-Hostname-FQDN/pkg-descr
Rong-En Fan 5a10b57cbb Add p5-Sys-Hostname-FQDN 0.07, get the short or long hostname.
PR:		ports/100736
Submitted by:	Tsung-Han Yeh <snowfly at yuntech.edu.tw>
2006-07-28 07:17:13 +00:00

11 lines
453 B
Plaintext

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.
Author: Michael Robinton <michael@bizsystems.com>
WWW: http://search.cpan.org/dist/Sys-Hostname-FQDN/