What is the tracked zone for the provided hostname?
(name, zones)
| 60 | |
| 61 | |
| 62 | def get_tracked_zone(name, zones): |
| 63 | """ |
| 64 | What is the tracked zone for the provided hostname? |
| 65 | """ |
| 66 | for zone in zones: |
| 67 | if name.endswith("." + zone) or name == zone: |
| 68 | return zone |
| 69 | return None |
| 70 | |
| 71 | |
| 72 | def extract_ct_certificate_names(dns_names, mongo_connector): |