import socket


def validate_server_addr(server, port):
    """Validate server name and port of the OMS server. Return True/False"""
    # make sure that we can find at least one way of connecting to the system
    try:
        return len(socket.getaddrinfo(server, port)) > 1
    except socket.gaierror:
        return False