# GET_ROOT_DOMAIN - Retrieve suffix info from a domain using Domain::Publi... - man(1p) - [phpMan]

[_GET_ROOT_DOMAIN_(1p)](https://www.chedong.com/phpMan.php/man/GETROOTDOMAIN/1p/markdown)              User Contributed Perl Documentation             [_GET_ROOT_DOMAIN_(1p)](https://www.chedong.com/phpMan.php/man/GETROOTDOMAIN/1p/markdown)

## NAME
       get_root_domain - Retrieve suffix info from a domain using [Domain::PublicSuffix](https://www.chedong.com/phpMan.php/perldoc/Domain%3A%3APublicSuffix/markdown)

## DESCRIPTION
       The get_root_domain utility uses [Domain::PublicSuffix](https://www.chedong.com/phpMan.php/perldoc/Domain%3A%3APublicSuffix/markdown) 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.

## SEE ALSO
       **Domain::[PublicSuffix**(3pm)](https://www.chedong.com/phpMan.php/man/PublicSuffix/3pm/markdown)

## BUGS
       Please  report  any  bugs or feature requests to "bug-domain-publicsuffix at rt.cpan.org", or
       through                 the                 web                 interface                  at
       <<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Domain-PublicSuffix>>.   I  will  be notified,
       and then you'll automatically be notified of progress on your bug as I make changes.

## LICENSE
       This program is free software; you can redistribute it and/or modify it under the same  terms
       as Perl itself.

perl v5.36.0                                 2023-09-02                          [_GET_ROOT_DOMAIN_(1p)](https://www.chedong.com/phpMan.php/man/GETROOTDOMAIN/1p/markdown)
