import requests


def get_root_domains(url, filename):
    """ Updates root domain file.

    :param url: URL of the root domains list.
    :param filename: File name to write the list.
    """

    r = requests.get(url)
    with open(filename, 'w') as f:
        f.write(r.text)
    return True