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

Function find_zone

python3_cron_scripts/get_sonar_data_unified.py:69–79  ·  view source on GitHub ↗

Determine if the domain is in a tracked zone.

(domain, zones)

Source from the content-addressed store, hash-verified

67
68
69def find_zone(domain, zones):
70 """
71 Determine if the domain is in a tracked zone.
72 """
73 if domain is None:
74 return ""
75
76 for zone in zones:
77 if domain.endswith("." + zone) or domain == zone:
78 return zone
79 return ""
80
81
82def update_dns(logger, dns_file, zones, dns_mgr):

Callers 3

update_dnsFunction · 0.70
check_for_ptr_recordFunction · 0.70
update_rdnsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected