This is the command get_root_domainp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
get_root_domain - Retrieve suffix info from a domain using Domain::PublicSuffix
DESCRIPTION
The get_root_domain utility uses Domain::PublicSuffix to get the root or suffix for a
fully qualified domain name. Given a FQDN, this utility will output the "root domain", and
the suffix and TLD used to calculate that root domain.
ยท Public Info Site:
<http://publicsuffix.org/>
SYNOPSIS
get_root_domain <domainname>
EXAMPLE USAGE
$ get_root_domain www.google.com
Domain: www.google.com
Root Domain: google.com
Suffix: com
TLD: com
$ get_root_domain www.google.co.uk
Domain: www.google.co.uk
Root Domain: google.co.uk
Suffix: co.uk
TLD: uk
RETURN VALUES
Returns 0 if a successful lookup is done, non-zero otherwise.
Use get_root_domainp online using onworks.net services