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

Function find_zone

python3_cron_scripts/get_data_by_cidr_unified.py:93–104  ·  view source on GitHub ↗

Does the domain exist in a tracked zone?

(domain, zones)

Source from the content-addressed store, hash-verified

91
92
93def find_zone(domain, zones):
94 """
95 Does the domain exist in a tracked zone?
96 """
97 if domain is None:
98 return ""
99
100 for zone in zones:
101 if domain.endswith("." + zone) or domain == zone:
102 return zone
103
104 return ""
105
106
107def update_dns(logger, dns_file, dns_manager, ip_manager, zones):

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