Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Menu
gethostbyname « Network « Perl
Perl
Network
gethostbyname
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.