Get the registrable domain (aka effective TLD + 1 label) for a hostname. Returns null for bare TLDs or invalid input. For IP addresses, returns the IP itself.
Get the registrable domain (aka effective TLD + 1 label) for a hostname. Returns null for bare TLDs or invalid input. For IP addresses, returns the IP itself.