Azure hosted website gives 404 error when domain name is preceded by www

view story

http://serverfault.com – mydomain.com works fine. www.mydomain.com gives "404 - File or directory not found." I don't want people to use www.mydomain.com instead of mydomain.com, but I also don't want the 404 error in their face if the do. The A record at GoDaddy looks like: Host - Points to - TTL @ - ip address - 600 seconds How to fix the issue so that if user types in www.mydomain.com they would be magically redirected to mydomain.com? (HowTos)