Speculation: Ukraine and Taiwan will probably have governments in exile, and the world will recognize them. DNS servers of "Western powers" will keep resolving .ua and .tw domains, while DNS servers in ally countries of China/Russia will not.
Who knows which side JD Vance's regime will be at that time.