I have a few machines set up on my internal 192.168.1.* network and i have one public ip, my router is links all ports to on internal linux machine on my network 192.168.1.3. I want to know how to configure the DNS server on my linux box to forward to internal LAN ip's depending on the host name. EG. computer220.127.116.11.12 would find my box then forward to 192.168.1.4 on the local network.
This is so i can run multiple web server under one ip. btw, i use Ubuntu.
Sorry for the confusing question, i may have asked it drunk. What i meant was i have multiple linux boxes behind my routers NAT they all have a local IP 192.168.1.2-10. I have one public IP which just points to the router (another linux box) i want that to direct to one of the boxes by the subdomain/hostname. For example:
domain.com -> router -> main box on public ip
box2.domain.com -> router -> 192.168.1.3
Hope that help? Can you help me?