Windows – How to set local alias for a machine

aliasnetworkingwindows

I would like to set an alias on my local PC for a network machine. I know that it can be done by adding an entry in the hosts file as long as the IP address of the machine is also specified. However, the problem is that IPs are dynamically assigned by a DHCP server so I don't know for sure the IP address. Is there a way to define just an alias based on the machine's network name?

P.S.: I'm running Windows Server 2008 R2.

Best Answer

Windows only supports IP to Hostname mapping. You cannot set up local aliases using the hosts file.

If you have control over the DNS for the network, you can create a CNAME record that maps one name to another name.

If you do not have control over the network's DNS - you are out of clean options (barring a frankensteined DNS server running on your localhost just for the creation of your own CNAMEs. shudders)

Related Topic