May 26, 2018

Get the short or long hostname

SysHostnameFQDN 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.

WWW http//