We help IT Professionals succeed at work.

forward a server path to another server name

Shifnal asked
Hi all, i have just built a new server and have a new server name for example of server2
We have old server called server1 but have some software running that points to the server name and i want to set dns or something to auto point this to the new server so will have the below

A request to \\server1\folder goes to \\server2\folder

is this possible and if so how and where would i set this?

many trhanks
to you all.
Watch Question

Panagiotis ToumpaniarisSystem Architect

if server1 and server2 are hostnames (netbios names) then you cannot. that is UNLESS you mess with lmhosts (%SystemRoot%\System32\Drivers\Etc\lmhosts) where you have to add a line :  SERVER2 #PRE

Open in new window

"#PRE" is very important as it instructs the system to pre-load the entry.

If they refer to DNS names then just change it in your DNS server OR your hosts file (%SystemRoot%\System32\Drivers\Etc\hosts) where you will have to add an entry such as server2.dns.local

Open in new window

hope it helps.
EE Topic Advisor, Independant Technology Professional
You want ALL requests for server1 to go to server2, or just that one share?

If you want everything, then you would just set up a CNAME on your DNS server. This will affect everybody.

If you only want to make this change for some users, you can add a records in their HOSTS file as Panagiotis suggested above.

If you just want to change for a specific share, the easiest thing to do is warn everybody and then break the old share. I.e. move the data to server2 and leave nothing in the share on server but a note and a shortcut to the new location. Otherwise you'll be keeping this old data around forever cluttering up your DNS.


Cname is the answer many thanks