Answer
The gethostbyname function retrieves host information regarding a host from a hosts database. This function fails if your DNS setting are misconfigured, the function will not receive the information it expects and will fail providing the error in the logs.
Keywords:gethostbyname, dns, error, failure, log