The gethostbyname function returns an entry from the /etc/hosts file for the name of a specific host passed as an argument.
Format: gethostbyname(NAME);
($name, $aliases, $addtrtype, $length,@addrs)=gethostbyname("dolphin");
Related examples in the same category