The reg-dom libs are available in C, Perl and PHP so far.
They include recent representations of the effective TLD list available at mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat and help to convert an arbitrary domain name to the registered domain name.
registeredDomain = getRegisteredDomain(ingoingDomain);
- NULL if ingoingDomain is a TLD
- the registered domain name if TLD is known
- just <domain>.<tld> if <tld> is unknown
This case was added to support new TLDs in outdated reg-dom libs by a certain likelihood. This fallback method is implemented in the last conversion step and can be simply commented out.
<Apache 2.0 Licence>