code: def cloudfront_domain_name(self, lookup, default=None):
      
      # list_distributions returns at most 100 distributions per request
      list_limit = "100"
      distributions = EFAwsResolver.__CLIENTS["cloudfront"].list_distributions(MaxItems=list_limit)["DistributionList"]
      # Return if the account has no Distributions
      if not distributions.has_key("Items"):
        return default
      while True:
        for distribution in distributions["Items"]:
          if lookup in distribution["Aliases"]["Items"]:
            return distribution["DomainName"]
        if distributions["IsTruncated"]:
          distributions = EFAwsResolver.__CLIENTS["cloudfront"].list_distributions(
            MaxItems=list_limit, Marker=distributions["NextMarker"])["DistributionList"]
        else:
          return default
docs: Args:
        lookup: any CNAME on the Cloudfront distribution
        default: the optional value to return if lookup failed; returns None if not set
      Returns:
        The domain name (FQDN) of the Cloudfront distrinbution, or default/None if no match