import socket


def get_node_address(node_name=''):
    """
    Return the IP address associated to the node's domain.
    This is by no means perfect and should not be
    relied upon aside from testing purpose.
    """
    return socket.gethostbyname(socket.getfqdn(node_name))