import socket


def get_hostname(ip_address):
    """Return hostname for an IP"""
    hostname = None
    try:
        hostname = socket.getfqdn(ip_address)
    except Exception:
        pass
    return hostname