Treasure (from Greek θησαυρός – thēsauros, meaning “treasure store”,[2] romanized as thesaurus) is a concentration of riches, often one which is considered lost or forgotten until being rediscovered.

The country Iceland has the top level domain .is. And I want to find cool domain names such that the second level domain and the top level domain “.is” forms a word. An example is meningit.is. So I went and grabbed a norwegian wordlist here;

$ wget https://scandinavian-keyboard.googlecode.com/files/norwegian.txt

Grep did not like dos crlf line endings;

$ dos2unix norwegian.txt

It does not like iso-8859 either;

$ iconv -f iso-8859-1 -t utf8 norwegian.txt > norwegian.utf.txt

Now the file is greppable and I want to find words ending with “is”;

$ grep is$ norwegian.utf.txt > words.txt

Add dot right before the “is” to form domain names;

#!/bin/bash

for word in $(cat words.txt);do
    length=${#word}
    echo "${word:0:(($length-2))}.is" >> domains.txt
done

Now there is a list with possible domain names, some of which are registered and some are not. Next I have to whois each domain and see which one is available. For this the whois tool is useful. grep for “No entries found” and check the exit status;

#!/bin/bash
 
for domain in $(cat domains.txt);do
    whois "$domain" | grep -q "No entries found"
 
    if [ $? -ne 0 ]; then
        :
    else
        echo "$domain" >> available_is_domains.txt
    fi
done

And now the file available_is_domains.txt contains a list of available cool domains! Some of the more interesting are antarkt.is, pres.is, praks.is and syfil.is. They are not cool if you dont understand norwegian. But the technique applied here can be used for other top level domains as well.