Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running my own DNS server and can manage my company domnain via my ISP. I have 1 public IP address

external request to and is pass to my old local web server @

Now at the new local web server @ I configure some services with name like,, etc... I also add these name into my local DNS server

I also point the external, to my public IP address

How can I redirect all the request, from out site world to my new local web server @

Thanks in advanced !

share|improve this question
What device is doing the NATing? – Mark Wagner Nov 3 '10 at 18:11
I use a draytek vigor2910 router – billyduc Nov 4 '10 at 5:19

The current situation is that you are doing NATing from your public IP to This address belongs to the old web server.

All you have to do is to do the NATing from your public IP to (the new web server).

The DNS names will always return the same value (your public IP).


In depends on the type of services that you have on your servers. For example, you can do the following:

1- Route the HTTP port 80 ( and IMAP/POP3 ports 143/110 ( to the IP:

2- Route the services ( and to the IP: You need to know the ports to do the correct NATing.

If you have the same service on both servers, you have to do some application-level routing/forwarding in this case.

share|improve this answer
I want to keep running both the web there any way different ? – billyduc Nov 3 '10 at 10:27
I updated my answer. – Khaled Nov 3 '10 at 11:13
thank Khaled, I think I need an application-level routing/forwarding – billyduc Nov 4 '10 at 2:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.