MCPcopy Create free account
hub / github.com/adobe/Marinus / get_fld_from_value

Function get_fld_from_value

python3_cron_scripts/whois_lookups.py:57–65  ·  view source on GitHub ↗

Get the First Level Domain (FLD) for the provided value

(value, zone)

Source from the content-addressed store, hash-verified

55
56
57def get_fld_from_value(value, zone):
58 """
59 Get the First Level Domain (FLD) for the provided value
60 """
61 res = get_fld(value, fix_protocol=True, fail_silently=True)
62 if res is None:
63 return zone
64
65 return res
66
67
68def correct_name_servers(logger, result, zone):

Callers 1

do_whois_lookupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected