Name : perl-Sys-Hostname-FQDN
| |
Version : 0.12
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.3.1
| Date : 2023-07-20 19:11:27
|
Group : Development/Libraries/Perl
| Source RPM : perl-Sys-Hostname-FQDN-0.12-lp155.3.1.src.rpm
|
Size : 0.05 MB
| |
Packager : https://www_suse_com/
| |
Summary : Get the short or long hostname
|
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.
* $host = short();
returns the host part of this host\'s FQDN.
* $fqdn = fqdn();
returns the fully qualified host name of this host.
* ($name,$aliases,$addrtype,$length,AATTaddrs)=gethostinfo();
returns: $name fully qualifed host name of this host. $aliases alternate names for this host. $addrtype The type of address; always AF_INET at present. $length The length of the address in bytes. AATTaddrs array of network addresses for this host in network byte order.
* ($name,$aliases,$addrtype,$length,AATTaddrs)=asciihostinfo();
returns: $name fully qualifed host name of this host. $aliases alternate names for this host. $addrtype The type of address; always AF_INET at present. $length The length of the address in bytes. AATTaddrs array of dot quad IP addresses for this host.
* $dotquad = inet_ntoa($netaddr);
input: packed network address in network byte order. returns: dot quad IP address.
* $netaddr = inet_aton($dotquad);
input: dot quad IP address. returns: packed network address in network byte order.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.5/x86_64 |