def gethostbyname(self, name, family):
        """Retrieves host information corresponding to a host name from a host
        database.

        :param str name: Name to query