We can use
C:\WINDOWS\system32\drivers\etc\hosts file to map hostname with IP addresses like this
But is it possible to assign one hostname to another like this?
From wikipedia :
You could put in the hosts file:
Beyond that, I think you would need to set up a local (or nearby) DNS server with CNAME entries to map localhost to some other host (and you'd have to remove 'localhost' from the hosts file for this to work).
You may have got the impression that some kind of 'redirection' is possible from things like
The Internet has a number of sample