Is the root domain for the provided cname one of the known domains?
(cname, zones)
| 40 | |
| 41 | |
| 42 | def is_tracked_zone(cname, zones): |
| 43 | """ |
| 44 | Is the root domain for the provided cname one of the known domains? |
| 45 | """ |
| 46 | for zone in zones: |
| 47 | if cname.endswith("." + zone) or cname == zone: |
| 48 | return True |
| 49 | return False |
| 50 | |
| 51 | |
| 52 | def get_tracked_zone(name, zones): |