Net-domain-tld is a project mainly written in Ruby, based on the MIT license.
Simple database of known top-level domain names.