I have a FQDN let's say abc.com with only one external IP and I use zoneedit.com ns servers.

I have configured www as a CNAME of abc.com. The web server is setup wiith IIS on local computer. What I want to do is to have a subdomain xyz of abc.com to be redirected to let's say 192.168.1.120 on local pc but to be accessible from web like xyz.abc.com.

How do I make this work?

I tried to setup headers in IIS like for www.abc.com to port 80 192.168.104 (this is the IP for web server) and xyz.abc.com to port 80 192.168.120 (the other server which is NOT a web server).

link|improve this question
feedback

1 Answer

Local addresses (like 192.168.*.*) aren't allowed on the Internet. They are managed by your local router and translated there.
If you only have one public IP then both subdomains will need to have that same IP. All traffic is not tagged as comming from a certain domain (HTTP-traffic almost always is though).

You can however use NAT forwarding. It is done by your router and forwards ports. You can forward traffic to port 80 to 192.168.1.104 and all other traffic to 192.168.1.120 but xyz.abc.com:80 and www.abc.com:80 will get resolved to your.public.IP.addresss:80 and your router won't be able to tell the difference.

link|improve this answer
Actually I've just made it work with the help of my router which has dd-wrt (v24sp2)on it. I added in DNSMasq following settings: address=/xyz.abc.com/192.168.1.122 ptr-record=122.1.168.192.in-addr.arpa,"xyz.abc.com" and I added '*' in CNAME on the DNS server(zoneedit.com) for the abc.com domain. For now it works on my local network but I needed to work from any public web browser. Remember I have only one public IP. Any suggestions? – Misu DF Dec 28 '11 at 21:13
Yes, this works on the local network because you have a whole /16-subnet of IP addresses but on the other side of the NAT you have only one. – micke Dec 28 '11 at 22:10
So the question is the same: how do I make it work? Do I need an internal DNS Server ? And if Yes how can I set it up? – Misu DF Dec 29 '11 at 12:36
feedback

Your Answer

 
or
required, but never shown

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