I needed this to play with some Whois queries and, as I did not find any code online to do it, here it is. Might come in handy to some C++ coders who need to convert URLs or host names to domain names.
" Content published on Tuesday, 16 October, 2007 "