Check if the provided domain exists within the zone
(domain, zones)
| 132 | |
| 133 | |
| 134 | def 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 | |
| 144 | def record_finding(logger, dns_manager, google_dns, zone, finding): |
no outgoing calls
no test coverage detected