Does the CNAME belong to a tracked zone?
(cname, zones)
| 48 | |
| 49 | |
| 50 | def is_tracked_zone(cname, zones): |
| 51 | """ |
| 52 | Does the CNAME belong to a tracked zone? |
| 53 | """ |
| 54 | for zone in zones: |
| 55 | if cname.endswith("." + zone) or cname == zone: |
| 56 | return True |
| 57 | return False |
| 58 | |
| 59 | |
| 60 | def lookup_hostname(logger, host, zones, round_three): |
no outgoing calls
no test coverage detected