Is the root domain for the provided cname one of the known domains?
(cname, zones)
| 49 | |
| 50 | |
| 51 | def is_tracked_zone(cname, zones): |
| 52 | """ |
| 53 | Is the root domain for the provided cname one of the known domains? |
| 54 | """ |
| 55 | |
| 56 | for zone in zones: |
| 57 | if cname.endswith("." + zone) or cname == zone: |
| 58 | return True |
| 59 | return False |
| 60 | |
| 61 | |
| 62 | def get_tracked_zone(name, zones): |