import socket


def lookup_host(ip_addr):
    """Returns a tuple with the results from the sockets method: 'gethostbyaddr(ip)'"""
    # TO DO: Create a host class to handle this data
    socket.setdefaulttimeout(3)
    try:
        return socket.gethostbyaddr(ip_addr)
    except socket.herror:
        return None, None, None