get_root_domain
module for parsing a domain to determine the public suffix
Install
- All systems
-
curl cmd.cat/get_root_domain.sh
- Debian
-
apt-get install libdomain-publicsuffix-perl
- Ubuntu
-
apt-get install libdomain-publicsuffix-perl
- Kali Linux
-
apt-get install libdomain-publicsuffix-perl
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install libdomain-publicsuffix-perl
- Raspbian
-
apt-get install libdomain-publicsuffix-perl
- Dockerfile
- dockerfile.run/get_root_domain
libdomain-publicsuffix-perl
module for parsing a domain to determine the public suffix
Domain::PublicSuffix utilizes the "effective_tld_names.dat" provided by Mozilla as a way to effectively reduce a fully qualified domain name down to the absolute root. The Mozilla PublicSuffix file is an open source, fully documented format that shows absolute root TLDs, primarily for Mozilla's browser products to be able to determine how far a cookie's security boundaries go. This module will attempt to search etc directories in /usr/share/publicsuffix, /usr, /usr/local, and /opt/local for the effective_tld_names.dat file. If a file is not found, a default file is loaded from Domain::PublicSuffix::Default, which is current at the time of the module's release.