We solve that problem with the public suffix list. The problem is there's a lot of .name domains, each of which would need to be added to the list.