def _host_absolute(name):
    """
    Ensure that hostname is absolute.
    Prevents us from making relative DNS records by mistake.
    """

    if not name.endswith("."):
        name = name + "."

    return name