def METHOD_NAME():
    """
    Gets the system domain. Assumes this code is run on a machine with craysys installed or that set_system_domain is called
    """
    global SYSTEM_NAME
    global SITE_DOMAIN
    global SYSTEM_DOMAIN
    if SYSTEM_DOMAIN:
        return SYSTEM_DOMAIN
    if not SYSTEM_NAME:
        __calculate_system_name()
    if not SITE_DOMAIN:
        __calculate_site_domain()
    SYSTEM_DOMAIN = "{}.{}".format(SYSTEM_NAME, SITE_DOMAIN)
    return SYSTEM_DOMAIN