Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 www.mydomain.com and mail.domain.com is pass to my old local web server @ 192.168.0.10.

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

I also point the external serv1.mydomain.com, serv2.mydomain.com to my public IP address

How can I redirect all the request serv1.mydomain.com, serv2.mydomain.com from out site world to my new local web server @192.168.5.100

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

1 Answer 1

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

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

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

Updated:

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 (www.mydomain.com) and IMAP/POP3 ports 143/110 (mail.mydomain.com) to the IP: 192.168.0.10

2- Route the services (serv1.mydomain.com and serv2.mydomain.com) to the IP: 192.168.5.100. 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 server...is 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

 
discard

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.