Get the root domain (FLD) for the provided value
(value, zone)
| 30 | |
| 31 | |
| 32 | def get_fld_from_value(value, zone): |
| 33 | """ |
| 34 | Get the root domain (FLD) for the provided value |
| 35 | """ |
| 36 | res = get_fld(value, fix_protocol=True, fail_silently=True) |
| 37 | if res is None: |
| 38 | return zone |
| 39 | |
| 40 | return res |
| 41 | |
| 42 | |
| 43 | def find_sub_zones(all_dns): |