BSD Ports

sysutils/p5-Sys-Hostname-FQDN 0.11_1 DragonFly

Get the short or long hostname

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART20
Categories
perl5, sysutils
Package size
10.9 KiB, 24.5 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlysysutils/p5-Sys-Hostname-FQDN0.11_1
FreeBSDsysutils/p5-Sys-Hostname-FQDN0.11_1
HardenedBSDsysutils/p5-Sys-Hostname-FQDN0.11_1
GhostBSDsysutils/p5-Sys-Hostname-FQDN0.11_1

Install

Binary package:

pkg install p5-Sys-Hostname-FQDN

From DPorts:

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

Dependencies

Run dependencies 1

No port depends on this one.