Get the root domain (FLD) for the provided value
(value, zone=None)
| 175 | |
| 176 | @staticmethod |
| 177 | def get_root_domain(value, zone=None): |
| 178 | """ |
| 179 | Get the root domain (FLD) for the provided value |
| 180 | """ |
| 181 | res = get_fld(value, fix_protocol=True, fail_silently=True) |
| 182 | if res is None: |
| 183 | return zone |
| 184 | |
| 185 | return res |
| 186 | |
| 187 | def get_zone(self, zone): |
| 188 | """ |
no outgoing calls
no test coverage detected