Hello. I just bought a new domain, say example.com, to point to my home network. I have an old computer running Debian that I use as my router/firewall box in front of all my other computers here. I'd like different subdomains of example.com to be forwarded to different computers on my network. For example, if someone goes to computer1.example.com, I want that to go to computer1. computer2.example.com would go to computer2. This could be ssh, ftp, telnet, http, or whatever I decide to let through my network.
I also would want aliases, so I could have
http://client1demo.example.com going through to a demo site I've set up for client 1 on some computer.
I've had shorewall and iptables set up for a year or so, running successfully. I just set up bind yesterday, but this is where my knowledge ends. I THINK I have to use my nameserver here, say ns1.example.com, as the nameserver I give to my registrar, right? Currently I'm using easydns.net for the name servers. If I understand correctly what I need to do, I need to scrap using easydns.net and use my own nameservers.
I also read that I need at least two nameservers. Can I use the same nameserver for both? For instance put a slave zone on my nameserver to my master zone, and then have ns1.example.com and ns2.example.com point to the same name server on the same internal IP on my network? I know this isn't recommended, but I also don't really care about this domain right now and am using it as a learning experience. Once I get bind set up correctly and working on one computer I can put it on another.
Or, am I going about this all the wrong way? Is there a way to set this up in shorewall? So basically IPTables reads the domain name that's been requested and forwards it based on that? I haven't figure out any way to do that.
Thanks VERY MUCH for any help on this.
- Andrew.