forward a server path to another server name

Shifnal
Shifnal used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Panagiotis ToumpaniarisSystem Architect

Commented:
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 :

192.168.1.1  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

192.168.1.1 server2.dns.local

Open in new window


hope it helps.
EE Topic Advisor, Independant Technology Professional
Commented:
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.

Author

Commented:
Cname is the answer many thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial