import json


def import_zone(filename: str) -> str:
    """
    Imports the zone information from hosts file
    :param filename: where the hosts file is located
    :return: domain name
    """
    # read file ('host' section contains a list)
    with open(filename) as fp:
        zone = json.load(fp)["zone"]

    return zone["domainname"]