This tool can extract TLD (Top Level Domain), domain extensions (Second Level Domain + TLD), domain name, and hostname from fully qualified domain names. Written in Ruby for Unix. Recognizes all countries, top level domains and second level domains.
f33c1ee29aec4d1bcb2cc50ef227fefb9b77472f44d18110ddb9a548375a874a