I noticed that the URL ga resolves to a website, but without a TLD like .com, .org, etc. I wrote a script to test all the two-letter URLs:
#!/bin/bash
for a in {a..z}
do
for b in {a..z}
do
curl "$a$b" -s -m 10 >> foo.txt
if [ -s foo.txt ]
then
cp foo.txt "$a$b.txt"
rm foo.txt
echo "$a$b"
fi
done
done
which prints
ai
dk
pn
to
uz
The script isn't perfect (it doesn't recognize ga
, for instance), but it shows that there are several more of these URLs. I did notice that these URLs are all TLDs in their own right-- ai is Anguilla, dk is Denmark, etc. Why are these URLs "valid" in the sense that they resolve to an IP address, and why do they exist?
(I'd make these into clickable links, but funnily enough, the SO formatter won't accept them as valid.)
dk
is a shopping site. Were they just sold to the highest bidder? – Plainsong