bedekelly / what3words

Toy Go DNS server which resolves IPs based on a three.word.format
3 stars 0 forks source link

Upstream conflict #1

Open kisst opened 2 years ago

kisst commented 2 years ago
~$ curl -s https://data.iana.org/TLD/tlds-alpha-by-domain.txt | tr '[:upper:]' '[:lower:]' > /tmp/tlds.txt 
~$ curl -s https://raw.githubusercontent.com/bedekelly/what3words/main/wordlist.txt | tr '[:upper:]' '[:lower:]' > /tmp/words.txt
~$ comm -12 /tmp/words.txt /tmp/tlds.txt | tee >(wc -l) | tail -n 6 
work
world
you
zero
zone
215
bedekelly commented 2 years ago

great catch... maybe it should pick from a subset of non-TLDs for the last component!