Domain name rules
There is a general rule that applies to domain names. The IP address and the server names are designed to be functional even when interchanged. In the case of most Internet services, the server basically has no way to know whether the IP address was used to connect or the server name. The extensive use of the internet and the increasing interest in the web indicates that there are many more dedicated web sites than there are servers!
In order to accommodate this boom in web usage, the hypertext transfer protocol or the HTTP as it is commonly known specifies that the client is liable to disclose to the server the name being logged in or used. In this way, one server with one IP address can actually provide different sites for different domain names! This advanced and controlled feature is better known as virtual hosting by the internet users and is a feature regularly used by web hosts.