Subdomain Me - add www with an A record
subdomain.me
subdomain.me
EDIT: If you are looking for a host that will do this, http://NameCheap.com is how I do it but I understand GoDaddy and Hover does it too. Seriously... go with a reputable registrar that has these simple features it will pay off in the end.
I'm curious as to why the developer felt the need to make this.
The long answer is that I run a platform for high-availability sites. I don't want to manage the client's DNS and I want to have the flexibility to instantly move sites from server to server. The answer, is to setup a CNAME and have the clients point their primary CNAME (www) to a host where you control the DNS.
www.example.com CNAME to example.myhostingservice.com. example.myhostingservice.com would then either point to an IP address or a round-robin DNS setup.
That leaves the problem of the naked domain. Traditionally you'd point the naked domain to the Primary IP address and then do some httpd.conf magic to redirect the naked to the www (or vice versa). However this does not solve the problem of what happens if the underlying IP address changes.
Pointing the naked domain to a dedicated IP address which is not associated with where the site is hosted removes the problem of what would happen if you change IPs quickly.
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
At least, that is what I use it for myself.
Granted, you could use examplecdn.com or something, but then you have to register and manage more domains.
Don't most self-respecting DNS providers allow you to do this?
Here it is: http://imagesk.com/QnEp4RU8.png
As clever as it is though, it serves no real world purpose, anyone clever enough to setup up their own domain will be able to set up a www subdomain, be it dns level or using a 301 redirect.
server {
listen 80 default;
server_name your_domain.net;
rewrite ^ http://www.your_domain.net$request_uri? permanent;
}But as others pointed out, decent DNS registrars will let you do this in your DNS administration account. Which is much safer.