I read in a book that nslookup
command is used to find the IP address from a domain name and vice-versa.
And domain name are just the names
given to the IP Addresses
as it is easy to remember names than the numbers.
When I type a domain name into the browser, DNS server resolves the IP Address from the domain name. But as there may be multiple sites that may have the same IP address, so what happened If I type the IP address in the browser instead of the domain name? How does the DNS server know on which website I want to go?
I have listed five websites.
all of them have the same IP address
When I type nslookup
in the cmd, so sometimes it returning me delhians.com, sometimes finitecolors.com, sometimes garbagevalue.com and so on.
So how the DNS decide which domain name to return in cmd as well as in browser?