by Animats · 11y ago · 0 comments
Then there's the relative domain problem. Although it's not used much any more, it's a feature of DNS that if you're on machine "abc.example.com", and you look up domain "xyz", it will try "xyz.example.com". The idea was that you could get at servers within your own organization without typing the fully qualified domain name. If you want the domain to be searched from the root, you're supposed to type "." after the domain, as in "example.com." Nobody knows this unless they're really into DNS. There's an adspam exploit that uses relative lookup to turn certain mistyped domains into ads on the domain "com.com", which pretends to host all subdomains of the form "*.com.com". If you're on "example.com", and you look up "nonexistentdomain.com", which doesn't exist, the domain "nonexistentdomain.com.com" is tried as a relative lookup. You get ads.
Then there's the problem of determining what's a second level domain. For that, you now need a very big list. (The list is here: https://publicsuffix.org/)
Current thinking seems to be to disallow single-word domains. There are already, though, a few two letter country code domains which host valid web sites at the TLD. (Try "http://ca.")