MCPcopy Create free account
hub / github.com/adobe/Marinus / check_zones

Function check_zones

python3_cron_scripts/download_from_remote_database.py:134–141  ·  view source on GitHub ↗

Check if the provided domain exists within the zone

(domain, zones)

Source from the content-addressed store, hash-verified

132
133
134def check_zones(domain, zones):
135 """
136 Check if the provided domain exists within the zone
137 """
138 for zone in zones:
139 if domain == zone or domain.endswith("." + zone):
140 return zone
141 return None
142
143
144def record_finding(logger, dns_manager, google_dns, zone, finding):

Callers 1

download_amass_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected