I have a doubt on how domain names are assigned to IP address.
According to ICANN evey domain will be assigned to IP address which will be globally accessed.
Lets say there are 3 different domains hosted on 1 reseller account
"example.com"
"example.org"
"againexample.com"
If we query this domains for there IP address, we get same IP address!
How is it possible?
It should be different IP address for each right?
Can anybody explain the login here?
When you type in address
www.example.com
in your browser, a request is sent to DNS (Domain Name Server). DNS Server responds with the IP address associated with that domain.Your browser then sends a request to the server located at the IP address provided, which then, based on domain requested, server appropriate content.
Basically, on the server side, it is configured as follows:
Which means, for the requested domain, serve content from the specified folder. For example if you type
example.com
you will get site located in/var/www/example.com/
.