Method Protocols.DNS.client()->gethostbyname()
- Method
gethostbyname
 arraygethostbyname(stringhostname)- Description
 Queries the host name from the default or given DNS server. The result is an array with three elements,
- Returns
 An array with the requested information about the specified host.
Array stringhostnameHostname.
array(string)ipIP number(s).
array(string)aliasesDNS name(s).
- Note
 Prior to Pike 7.7 this function only returned IPv4 addresses.