forward a server path to another server name

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.
ShifnalAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Panagiotis ToumpaniarisSystem EngineerCommented:
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.
Brian BEE Topic Advisor, Independant Technology ProfessionalCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ShifnalAuthor Commented:
Cname is the answer many thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.