You still need a file to generate them. Unless you could get all the domains to point to the same documentroot or use a symlink or something.
Anyway, hosting companies like that massively oversell their capacity knowing that most people won't use it. If you actually tried to put up 30,000 (or, heck, even 300) active domains, the server would probably just die under the load.
You could generate them dynamically.