Can anyone give me the exact line to add a static route for the following setup

My domain (192.168.16.X) access's the internet through a router withip all users have as there gatway.  I run a website  with a lan address of which is connected to a router which has a second address of (connected back to my existing lan)

Basically I want any requests for to go to for the entire domain.  I believe if I make the change to the server for the domain then the clients will automatically update as the server is set as there primary DNS
Who is Participating?
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.

Can you clarify whether you want to change DNS or you want to change your routing?

The best way to add a route for all machines on your network to the network would be to add a route on the default gateway router which will direct traffic for the network to the router.

Making a change in DNS will change what the url resolves to but will not change how the traffic is routed to the server unless you also add a network address translation.
i agree with saineolai's idea of doing it with proper dns config.

also you are asking for a 'static route' which will not resolve your issue at all,,, static routes are for routing networks and/or subnets, not individual IPs.  i think what you are asking for is IP forwarding, which is completely different than static routing.  But as mentioned above, your problem can be resoved with proper DNS setup which is the proper way to do it.

you mean you want to add a static route via a gpo or something? maybe it would be best if you add the static route in the router .16.4... then every workstation would use the normal gateway, and this gateway would forward the packets to the proper router...

but, if you want to add a static router to a domain, you could make a .bat file that contains the proper route add command, and then set it to run in a gpo...

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
Renato Montenegro RusticiIT SpecialistCommented:
Sainei is right.

But, if you really really really want to create the route, you have to do it in all machines that need this access. Open command prompt and type the following:

route -p add mask

-p will make the route permanent (even after a restart, it will remain)

This should work fine. But, again, the best is to configure this route on gateway.

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
Operating Systems

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.