I have a dedicated server which has only one public IP address (eg.10.20.30.40) and a domain dedicated to it (example.com)
on that server I have lots of virtual machines hosted on an ESXi Hypervisor, and each vm does a different job (mail server, chat server, file server, etc). each vm took a local IP from my DNS-vm DHCP.
How can I resolve each vm local to a subdomain?
I think putting a vm acting as a DNS server in front could resolve ALL requests to a vm, but I don't know how. please see my server internal network topology:
for example if someone sends request to mail.example.com, his request will reach DNS first and DNS routes all traffic (forward and backward) to specific vm (192.168.1.10)