gethostbyname « Network « Perl






1.The gethostbyname function returns an entry from the /etc/hosts file for the name of a specific host passed as an argument.
2.The gethostbyname function searches for an /etc/hosts entry that matches a specified machine name.