code: def get_domain_name(self, domain_name, route53=True):
          
          # Make sure api gateway domain is present
          try:
              self.apigateway_client.get_domain_name(domainName=domain_name)
          except Exception:
              return None
  
          if not route53:
              return True
  
          try:
              zones = self.get_all_zones()
              for zone in zones['HostedZones']:
                  records = self.route53.list_resource_record_sets(HostedZoneId=zone['Id'])
                  for record in records['ResourceRecordSets']:
                      if record['Type'] in ('CNAME', 'A') and record['Name'][:-1] == domain_name:
                          return record
  
          except Exception as e:
              return None
  
          ##
          # Old, automatic logic.
          # If re-introduced, should be moved to a new function.
          # Related ticket: https://github.com/Miserlou/Zappa/pull/458
          ##
  
          # We may be in a position where Route53 doesn't have a domain, but the API Gateway does.
          # We need to delete this before we can create the new Route53.
          # try:
          #     api_gateway_domain = self.apigateway_client.get_domain_name(domainName=domain_name)
          #     self.apigateway_client.delete_domain_name(domainName=domain_name)
          # except Exception:
          #     pass
  
          return None
docs: Scan our hosted zones for the record of a given name.
  
          Returns the record entry, else None.