BSD Ports

sysutils/p5-Sys-Hostname-Long 1.5_1 DragonFly

Try every conceivable way to get full hostname

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
perl5, sysutils
Package size
10.6 KiB, 21.6 KiB installed

Description

How to get the host full name in perl on multiple operating systems (OS X, 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.

In the other systems

SystemPortVersion
DragonFlysysutils/p5-Sys-Hostname-Long1.5_1
FreeBSDsysutils/p5-Sys-Hostname-Long1.5_1
OpenBSDnet/p5-Sys-Hostname-Long1.5p0
NetBSDsysutils/p5-Sys-Hostname-Long1.5nb11
MidnightBSDsysutils/p5-Sys-Hostname-Long1.5_1
HardenedBSDsysutils/p5-Sys-Hostname-Long1.5_1
GhostBSDsysutils/p5-Sys-Hostname-Long1.5_1

Install

Binary package:

pkg install p5-Sys-Hostname-Long

From DPorts:

cd /usr/dports/sysutils/p5-Sys-Hostname-Long && make install clean

Dependencies

Run dependencies 1