How to make this kind of URL: mail.google.com
===

I don't know the name of this part of the domain name: **mail**.google.com

How do I implement something like that in my web application?

Please show me some tutorial for this. thank you