Anybody written domain -> user mapping yet?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
jpp's picture

I'd like to have http://user.site.com be equivalent to http://site.com/blogs/user (mod-rewrite?) but I'd also like to have the option for a user to specify a custom domain in their profile and have http://customdomain.com map to http://site.com/blogs/user - has anybody written code to do this? If not I'm going to have to write my own module to implement it ....