Let's say that I have several machines (or VMs) on an internal (10.0 or 192.168 class) LAN, that need to communicate with each other, but instead of configuring a somewhat dynamic, tedious to keep updated /etc/hosts file (as new VMs get added every now and then), I'd like to set up an internal DNS server. All of my test machines and VMs are running Linux. I have some questions in this regard:
- Can I setup the DNS server s.t. I can use a fake domain (say "example.com" since it is reserved) as my domain as known internally in the private network ?
- Can I setup the DNS server s.t. the /etc/resolv.conf points to this server to resolve all the machine IP-addresses for hosts in this private / fake domain ? However, for a real / actual existing domain, the DNS server should point-to or fetch resolved IP-address from a cascaded actual DNS server (s.a. a public DNS server) ? The latter is for access to general public internet from the test machines, through a NAT-Proxy.
- Could I do something of this nature with say TinyDNS ? I find Bind a bit too intimidating, and perhaps an overkill for my needs ?